HighDots Forums  

Div border not drawn around contents

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Div border not drawn around contents in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stuart Scharf
 
Posts: n/a

Default Div border not drawn around contents - 12-02-2005 , 11:57 AM






I am trying to use a div with a border (class=info) to contain two other
divs.

http://www.etzchaimsharon.org/announcements.htm
http://www.etzchaimsharon.org/announcements.css

on IE this seems to work correctly. On Firefox and most other browsers,
the border is drawn as if the div was empty and did not contain the
other divs.

Any idea why this is happening?

Stuart Scharf

Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Div border not drawn around contents - 12-02-2005 , 01:57 PM






Stuart Scharf wrote:

Quote:
I am trying to use a div with a border (class=info) to contain two other
divs.
on IE this seems to work correctly. On Firefox and most other browsers,
the border is drawn as if the div was empty and did not contain the
other divs.
http://www.complexspiral.com/publica...aining-floats/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is


Reply With Quote
  #3  
Old   
Stuart Scharf
 
Posts: n/a

Default Re: Div border not drawn around contents - 12-05-2005 , 08:24 AM



David Dorward wrote:
Quote:
Stuart Scharf wrote:


I am trying to use a div with a border (class=info) to contain two other
divs.
on IE this seems to work correctly. On Firefox and most other browsers,
the border is drawn as if the div was empty and did not contain the
other divs.


http://www.complexspiral.com/publica...aining-floats/

Thanks, I had forgotten that the contained div's were floats and what
that implied.

While playing, I noticed that if I set the containing div to
overflow=hidden (or anything other then visible) the border was
also correct, but I have no idea why that worked.

(I have since corrected the origional url by adding a clearing div)


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.