navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

div spacer height

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> div spacer height
Page: [1]
 
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!

(in reply to guboogi)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> div spacer height
Page: [1]
Jump to: 1





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