Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   1,000 Directory Submissions   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 02-17-2005, 10:51 PM   #1 (permalink)
Inactive
 
Grump's Avatar
 
Join Date: 02-12-05
Location: teh Ether
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

Grump is liked by many
Text box width not consistent

A left floating text box that text wraps around the top, right and bottom is not rendering at the same size in all browsers (IE and Firefox are my main test platforms). The page was going pretty well, thanks to some help I have already received, but I hit a snag on this. Please take a look at the test page below.

TEST PAGE

The relevant style code follows:

Code:
.textboxleft { background: #3E5C92; font: normal 0.8em/140% arial, helvetica, sans-serif; margin: 10px; width: 160px; border: 1px solid #E4E7F5; float: left; overflow: hidden; padding: 0.5em; } .textboxleft p { color: #000000; } ul li { color: #E0E0F6; font: normal 0.9em/135% tahoma, arial, helvetica, sans-serif; }
Of course, you can also look at the complete source code and download the css file for more information. I would be happy to provide any additional information.

If there is something I can alter in the CSS to make the box 160px wide (or whatever I decide on) in all browsers, please let me know. I am very new at this and have only gotten this far with the help of people like you.

Thank you,

Grump
PS: you will also notice another thread concerning the bulleted list problem you see. It bumps into the text box and doesn't look good. Please excuse any redundancy, but these are 2 different problems, I think.
Grump is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 02-18-2005, 05:17 AM   #2 (permalink)
Inactive
 
Ricoool's Avatar
 
Join Date: 10-13-03
Location: wonderfull Copenhagen, DK
Posts: 1,256
iTrader: 0 / 0%
Latest Blog:

[CaRP] Failed to open file: Don't blog

Ricoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to behold
Send a message via Skype™ to Ricoool
this looks like the "old" box model problem, http://www.positioniseverything.net/...box-model.html
Ricoool is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-18-2005, 12:02 PM   #3 (permalink)
Inactive
 
Grump's Avatar
 
Join Date: 02-12-05
Location: teh Ether
Posts: 16
iTrader: 0 / 0%
Latest Blog:
None

Grump is liked by many
That was interesting and I even applied the hack, but I knew that wasn't the problem. It's not IE that is not rendering the code correctly, it's Firefox. The box is s'posed to be 160px wide, have a 10px margin, a border only 1px and the padding is 0.5em. The font style is arial, although I have changed it to see of that helps (it's at tahoma now on my working copy).

I checked the size of the text box on both browsers, from inside border to inside border, and it is about 170px (using Moplanet PixelRuler 3) on both browsers. This could only mean the text spacing or the text size appears differently on each browser -- bigger on FF.

The box had to be increased to 170px wide in order to render the bulleted list with no line breaks between items. This is too wide for what I want. IE renders the text and box just fine, FF does not. There is also a horizontal line, styled in css, that is s'posed to be 1px high, 85% wide, centered and white, which is exactly how IE renders it, but FF has it as a gray groove that looks more than 1px and off center.

I am trying to write compliant code. More specifically, I am trying to use compliant code -- a lot of the code has been "borrowed" from tutorials and my forum software (vB). Maybe it's the padding, maybe the margin, or maybe it's the font style, I don't know. I hope someone can help.

Thank you,

Grump
Grump is offline  
Add Post to del.icio.us
Reply With Quote
Old 02-18-2005, 02:31 PM   #4 (permalink)
Inactive
 
Ricoool's Avatar
 
Join Date: 10-13-03
Location: wonderfull Copenhagen, DK
Posts: 1,256
iTrader: 0 / 0%
Latest Blog:

[CaRP] Failed to open file: Don't blog

Ricoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to beholdRicoool is a splendid one to behold
Send a message via Skype™ to Ricoool
I still think it is the box model, not on the box but on the text that wraps around it, about the HR, I dont think that you can give it a color/style in mozilla based browsers.
Ricoool is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS div width / DIV with aut expanding width depending on content cheska Web Design Lobby 3 02-04-2008 11:37 AM
New Problem: td width? Capo64 Coding Forum 9 06-15-2007 11:05 AM
Question about the width fuser Coding Forum 4 08-15-2006 04:28 PM
I need help width colors... SN3 Web Design Lobby 3 01-27-2004 02:03 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 06:46 PM.
© Copyright 2008 V7 Inc