|
| |
|
|
guboogi
Posts: 1 Joined: 12/1/2003 Status: offline
|
div spacer height - 12/1/2003 14:13:17
Hi, I'm a newbie here but I had a quick question. I have a site that I made and I use floated images, so I used a spacer div surrounding it. It seems that the spacer div takes on (unwanted) height of about a line break. While this isn't anything critical, I was wondering if there was a way for me to have this div actually show up with no height. Here's some code that I use: <div class="spacer"></div> <div class="content"> <-- this is a floated div <img><img> etc. </div> <div class="spacer"></div> the code for my spacer div is as follows: .spacer { clear: both; height: 0px; overflow: hidden; } It seems that this works fine using IE6 on P:C and Mozilla Firebird, but not using IE 5.5 on PC (and I'm assuming earlier versions of IE). Any help would be appreciated. Thanks!
|
|
|
|
Richard Dudley
Posts: 668 Joined: 8/22/2002 From: Butler, PA Status: offline
|
RE: div spacer height - 12/2/2003 16:12:07
try adding display:inline to the.spacer definition in the CSS. IE 5.5 is weird with CSS sometimes.
_____________________________
I need to change my avatar--the puppy is full grown now!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|