Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS hierachy problem, can't overide CSS setting

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi, I have the following CSS
Code:
#subs td, #comps td {
    border:1px dashed #444444; 
    font-size:1em; 
    height:25px;
    text-align:center;
    padding:3px;
    min-width:120px;
} 

#comps td#radsel, #subs td#radsel {
    width:20px;
    }

But the td with id radsel is still showing as 120px , why won't the second part of CSS overide the first part.

I thought I'd coded the heiracy correctly, but obviously i'm doing something wrong as it isn't working.

Cheers,
1DMF

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
it's ok worked it out thanks.

forgot to apply it as a class to all table rows!

D'oh.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top