Color <hr>

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

How do you color an ? I tried but it is not valid see here

I am so close to getting that homepage valid I can taste it. For some reason, I started trying to make valid code. I must be going crazy Sticking out tongue. I am also trying to get it tabless, just to see if I can.

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

Nevermind, you use css to do it.

hr {
background-color:#dddddd;
color:#dddddd;
height:2px;
border:none;
}

He has: 490 posts

Joined: May 2005

Or

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

You also have to have background-color:#666666; because Opera doesn't recognize just "color" for hr.

He has: 490 posts

Joined: May 2005

Just add it to the in line style. or any other attribute in that order. That's the way I do it when I only need a hr in one place, and only on one page.

demonhale's picture

He has: 3,278 posts

Joined: May 2005

i was going to say css. but well, I always think css first for styling...

Busy's picture

He has: 6,151 posts

Joined: May 2001

teammatt3 wrote: ... I must be going crazy Sticking out tongue. I am also trying to get it tabless, just to see if I can.

Noooooooo step away from the light
:eek:
Once you have tasted the forbidden apple (validation bug) there is no turning back Roll eyes

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.