HighDots Forums  

How to define the HR element using CSS?

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


Discuss How to define the HR element using CSS? in the Cascading Style Sheets forum.



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

Default How to define the HR element using CSS? - 10-27-2003 , 02:49 PM






Hi,

I wonder which style sheet properties to use on specifying a HR element. Can
someone please enlighten me here?

<hr style="border: 1px solid gray">
doesn't substitute
<hr noshade size="1" color="Gray">

it's 2 pixels on IE6...

TIA,
Axel Dahmen



Reply With Quote
  #2  
Old   
Graham J
 
Posts: n/a

Default Re: How to define the HR element using CSS? - 10-27-2003 , 02:57 PM






Quote:
I wonder which style sheet properties to use on specifying a HR
element. Can
someone please enlighten me here?

hr style="border: 1px solid gray"
doesn't substitute
hr noshade size="1" color="Gray"

it's 2 pixels on IE6...
That seems reasonable as you have defined a 1px border top and bottom.
Have a play around with the 'height' with and without borders and
using foreground and background colours to see what happens. You
might want to set the foreground and background colours the same for
best cross browser support.



Reply With Quote
  #3  
Old   
Axel Dahmen
 
Posts: n/a

Default Re: How to define the HR element using CSS? - 11-01-2003 , 09:27 AM



Thanks for your tips Graham. I'll give it a try and "fiddle" around with the
properties you've mentioned.

------------------
"Graham J" <individual-news-7 (AT) orangebucket (DOT) co.uk> schrieb im Newsbeitrag
news:bnjtb1$11nsiu$1 (AT) ID-203032 (DOT) news.uni-berlin.de...
Quote:
I wonder which style sheet properties to use on specifying a HR
element. Can
someone please enlighten me here?

hr style="border: 1px solid gray"
doesn't substitute
hr noshade size="1" color="Gray"

it's 2 pixels on IE6...

That seems reasonable as you have defined a 1px border top and bottom.
Have a play around with the 'height' with and without borders and
using foreground and background colours to see what happens. You
might want to set the foreground and background colours the same for
best cross browser support.




Reply With Quote
  #4  
Old   
Jacqui or (maybe) Pete
 
Posts: n/a

Default Re: How to define the HR element using CSS? - 11-01-2003 , 10:09 AM



Axel Dahmen wrote:
Quote:
Hi,

I wonder which style sheet properties to use on specifying a HR element. Can
someone please enlighten me here?

hr style="border: 1px solid gray"
doesn't substitute
hr noshade size="1" color="Gray"

Well, you should take out the html styling (noshade etc).

Here's a few examples:

http://porjes.com/pichr.html
http://porjes.com/hrs.html


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.