HighDots Forums  

Re: margin-top on HR, DL with floated DDs

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


Discuss Re: margin-top on HR, DL with floated DDs in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gus Richter
 
Posts: n/a

Default Re: margin-top on HR, DL with floated DDs - 04-10-2005 , 06:20 PM






Marek Mänd wrote:
Quote:
I have question regarding (clearing) floats and margin-top on DL and HR
elements.

http://www.hot.ee/idaliiga/testcases...g-selector.htm

Namely the IE6 doesnt calculate the margin-top on the DL (definition
list) element correctly. It starts to add topmargin at current fontsizes
and layout when i tell him to have 38px topmargin. Can this be fixed
somehow to normal?

The second question about MOZILLA FIREFOX1.02 is how do i make him to
understand the margin top set to HR eement told by:

hr.separatorlinebeforeformcontrols{margin-top:10px;margin-bottom:10px;}
br class="CA"/><hr class="separatorlinebeforeformcontrols"/

it doesnt listen my instructions very well and draws the horizontal rule
right after the definition list without no margin-top. What properties
must i add or delete to get 10px gap?
Re. your HR problem:

It's because the images are floated, are therefore out of the flow, and
the margin-top of the horizontal rule calculation must come down the
height of the two images (423px which includes the two radio button
portions) and then add your desired 10px - resulting in the 433px
requirement to get what you want.

IE has all kinds of problems.

--
Gus


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 - 2008, Jelsoft Enterprises Ltd.