Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / March 2006



Tip: Looking for answers? Try searching our database.

Floats and "clear"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
longhair - 30 Mar 2006 00:29 GMT
I have a page that's causing me some problems in FireFox 1.5 but not
IE6.

I have a <dl> with the <dt> and <dd> both within defined with "float:
left" to have a table-like look.

See it at http://bubba.textdriven.com/partners.htm and
http://bubba.textdriven.com/partners-2.htm.

The issue I'm concerned with is the following block - an <h3> - does
not get cleared in FF (partners.htm), so I've tried a "clear: both" for
the H3 (see partners-2.htm). However, the bottom of the <dl> and the
top of the <h3> are then squished together too close.

This does not happen in IE, but perhaps that's a problem with IE.

What do I need to do so that I can have a table-like structure for my
contact details, while still having a nice gap between it and the next
block? I haven't had much luck styling the <dl>, except for a very
large bottom padding or margin, which then screws up IE.

Obvious answer is to use a table I suppose, but any other options I
could go for? I'm open to anything.
Jim Moe - 30 Mar 2006 07:37 GMT
> The issue I'm concerned with is the following block - an <h3> - does
> not get cleared in FF (partners.htm), so I've tried a "clear: both" for
> the H3 (see partners-2.htm). However, the bottom of the <dl> and the
> top of the <h3> are then squished together too close.

 Use padding instead of margin.

Signature

jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Jasen Betts - 30 Mar 2006 11:01 GMT
> I have a page that's causing me some problems in FireFox 1.5 but not
> IE6.
[quoted text clipped - 19 lines]
> Obvious answer is to use a table I suppose, but any other options I
> could go for? I'm open to anything.

set explicit margins on both elements.

Signature

Bye.
  Jasen

kchayka - 30 Mar 2006 16:18 GMT
> I have a <dl> with the <dt> and <dd> both within defined with "float:
> left" to have a table-like look.
>
> See it at http://bubba.textdriven.com/partners.htm and
> http://bubba.textdriven.com/partners-2.htm.

Looks like tabular data to me. Use a table.

Signature

Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.