what to use instead of bordercolor

B

Big Bill

I see that doesn't validate, odd as some validators seem to think it
does (or I misread them).
So should I be using a css value instead?

BB
 
B

Brendan Taylor

I see that doesn't validate, odd as some validators seem to think it
does (or I misread them).
So should I be using a css value instead?

Yep. If it's a matter of how it's going to look, you should be using CSS
to do it.

<selector> {
border-color: <hex value or colour name>;
}
 
N

Neal

Brendan Taylor wrote:
If it's a matter of how it's going to look, you should be using CSS
to do it.

<selector> {
border-color: <hex value or colour name>;
}

Except for the < and the >, which don't belong in the CSS... I see what
you're doing, but perhaps [ and ] are clearer for the less initiated.
 
R

Richard

Big said:
I see that doesn't validate, odd as some validators seem to think it
does (or I misread them).
So should I be using a css value instead?

Just use the [border:solid 1px red] method.

<div id="id" style="border:solid 1px #F00">
 
B

Brendan Taylor

<selector> {
border-color: <hex value or colour name>;
}

Except for the < and the >, which don't belong in the CSS... I see what
you're doing, but perhaps [ and ] are clearer for the less initiated.

Yeah, I didn't think that through very well. Thanks for the clarification.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top