Another alternative is to simply replace the hr with a p tag and a class
like .lne{border-top:1px solid #ff0000;}. This too employs a block level
element. I've heard arguments that this is preferable to using hr. 

drew

-----Original Message-----
From: Joseph Harris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 7:30 AM
To: [EMAIL PROTECTED]
Subject: [wdvltalk] Re: red line in Opera


Jon, Matt, John and David,

Thank you all for your advice.

'hr' didn't do it;  closing ';' didn't do it; lower-casing the hex
didn't do it. ---

Jon, your piece of code below *did* do it.     Then I took a step too
far!   I realised the table borders were coming up grey instead of
gold and I tried to adapt the code for tables.

In IE I got ALL the boxes outlined (of course, would have to make a
'class' of it);  in Opera it turned into a jumble - though the visible
lines of boxes were the colour I specified!

Of course if you had an idea for that.....

Many thanks,

Joseph

> Hi Joseph,
>
> > The <hr> red lines in my site design work rather well.   So it is
a
> > pity Opera renders them as grey.   Is there any way to get Opera
to
> > fall in line?   I am using CSS for the colour.
>
> This is down to a difference of opinion between IE and
Opera/Mozilla.
>
> IE reckons that an <hr> is just a line, and uses the "color"
definition to
> style it. Opera and Mozilla think that an <hr> is a box with nothing
in it
> (somewhat like a <div> with no content), and look for the
"border-color"
> definition.
>
> Point your browsers at www.laughing-buddha.net/tmp/hr.html and
you'll see
> the difference.
>
> Assuming you want a 2 pixel high red <hr>, try this:
>
> hr {
>  height : 2px;
>  border-width : 2px 0px 0px 0px;
>  border-style : solid;
>  border-color : #F00;
>  color : #F00;
> }
>
> Cheers
> Jon
>
>
> ____ . The WDVL Discussion List from WDVL.COM . ____
> To Join wdvltalk, Send An Email To:
mailto:[EMAIL PROTECTED]
>        Send Your Posts To: [EMAIL PROTECTED]
> To set a personal password send an email to [EMAIL PROTECTED]
with the words: "set WDVLTALK pw=yourpassword" in the body of the
email.
> To change subscription settings to the wdvltalk digest version:
>     http://wdvl.internet.com/WDVL/Forum/#sub
>
> ________________  http://www.wdvl.com  _______________________
>
> You are currently subscribed to wdvltalk as:
[EMAIL PROTECTED]
> To unsubscribe send a blank email to
%%email.unsub%%
>


____ * The WDVL Discussion List from WDVL.COM * ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the
words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%

____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set 
WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to