473,414 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Floats and "clear"

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.

Mar 29 '06 #1
3 1276
longhair wrote:

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.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 30 '06 #2
On 2006-03-29, longhair <ha*******************@yahoo.co.uk> wrote:
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.


set explicit margins on both elements.

--

Bye.
Jasen
Mar 30 '06 #3
longhair wrote:

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.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Mar 30 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mr. B | last post by:
I have VB.net 2003 and I am wondering How (if possible) can I clear out the current listing of my OPEN AND EXISTING PROJECT list when I first start up VB.net? I currentl show 10 such projects. ...
10
by: cppdev | last post by:
Hi All! I want to clear the string contents from sensitive information such as passwords, and etc. It's always a case that password will appear as string at some point or another. And i feel...
3
by: Wayne | last post by:
I downloaded the Office 2007 Beta today and have been clicking around Access and the other Office Apps. They all have clear type switched on despite the fact that I have it turned off in Windows. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.