Forum Moderators: not2easy

Message Too Old, No Replies

CSS div and float help

New to css based design...

         

nextadvantage

5:31 pm on Aug 3, 2007 (gmt 0)

10+ Year Member



Hello All...

I have recently tried to jump from table based design to pure css. I have a current issue that google has not been able to help me with.

I have 2 outer div's that I would like to wrap around inner divs and in IE they are but in Firefox and Safari the are not wrapping around the float div. any help looking at this would be appreciated, thx

[edited by: Robin_reala at 9:46 pm (utc) on Aug. 6, 2007]
[edit reason] Removing URL as per TOS #13 [webmasterworld.com] [/edit]

Xapti

6:05 pm on Aug 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Personal URLs are not allowed. Post your relevant HTML and CSS code, and explain yourself better, because I'm not certain I know what you want.

If you have a float, you should know that they don't take up flow (in a sense) if there's an auto-sized container around them. To make them fit in a autosized container, you can set overflow:auto to the container, and/or add a clear:both styled element after the float at the bottom of the container. Typically 0 height divs are used, or sometimes HRs.