HighDots Forums  

hr+clear space+IE

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


Discuss hr+clear space+IE in the Cascading Style Sheets forum.



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

Default hr+clear space+IE - 11-21-2004 , 07:27 PM






Hi!

To clear both of side I use this code:

hr.clear{
display:block;
clear:both;
visibility:hidden;
height:0;
border-width:0;
margin:0;
padding:0;
}

But why IE adding some space after <hr> ? In Firefox 1.0 and Opera
working very well. There is no space.

--
Regards,
Cezar

Reply With Quote
  #2  
Old   
Chris Leipold
 
Posts: n/a

Default Re: hr+clear space+IE - 11-22-2004 , 07:54 AM






Hi,

Quote:
To clear both of side I use this code:

hr.clear{
display:block;
clear:both;
visibility:hidden;
height:0;
border-width:0;
margin:0;
padding:0;
}

But why IE adding some space after <hr> ? In Firefox 1.0 and Opera
working very well. There is no space.
I guess this is from Eric Meyer's float-in-float example. He has another
clearer there, built of a <div>. Use the latter one.

Chris


Reply With Quote
  #3  
Old   
Martin Bialasinski
 
Posts: n/a

Default Re: hr+clear space+IE - 11-22-2004 , 08:42 AM



Chris Leipold <cleipold (AT) dietzk (DOT) de> wrote:

Quote:
I guess this is from Eric Meyer's float-in-float example. He has
another clearer there, built of a <div>. Use the latter one.
I came upon another technique described in
http://www.positioniseverything.net/easyclearing.html

Looks clever. Opinion anyone?

Bye,
Martin


Reply With Quote
  #4  
Old   
Cezar
 
Posts: n/a

Default Re: hr+clear space+IE - 11-22-2004 , 11:11 AM



Martin Bialasinski napisaƂ(a):
Quote:
Chris Leipold <cleipold (AT) dietzk (DOT) de> wrote:


I guess this is from Eric Meyer's float-in-float example. He has
another clearer there, built of a <div>. Use the latter one.


I came upon another technique described in
http://www.positioniseverything.net/easyclearing.html
I know this method. Probably the best, but sometimes I was used <hr> and
what I saw ? Hmm. some space in IE. That's why I ask on the group what
is it ? Another magic IE ? ;-)

--
Regards,
Cezar


Reply With Quote
  #5  
Old   
Cezar
 
Posts: n/a

Default Re: hr+clear space+IE - 11-28-2004 , 07:12 AM



kchayka napisał(a):
Quote:
Cezar wrote:

hr.clear{
display:block;
clear:both;
visibility:hidden;
height:0;
border-width:0;
margin:0;
padding:0;
}

But why IE adding some space after <hr> ?


It's probably IE's broken overflow behavior.
overflow:hidden might fix it, at least in some versions of IE.

Thanks. I'll check it.

--
Ave,
Cezar


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.