houssam_ballout Posted December 29, 2006 Share Posted December 29, 2006 helloam trying to build a class for the tr, but I want to include also the a:visited and. everything about itcan I make a class that include another classThanks Link to comment Share on other sites More sharing options...
PrateekSaxena Posted December 29, 2006 Share Posted December 29, 2006 why dont you make a link that would be similar to an anchor tag. then you would not need the TR inner class.Try the following code - <html><head><style type="text/css">a.tro{width: 50px;heighT:20px;background-color: #0e0e0e;}a:hover.tro{width: 50px;heighT:20px;background-color: #dedede;}a:visited.tro{width: 50px;heighT:20px;background-color: #0f0f0f;}</style></head><body><a class="tro" href="http://google.com">I love Google</a><a class="tro" href="http://yahoo.com">I love Yahoo</a><a class="tro" href="http://msn.com">I love MSN</a></body></html> does this help? Link to comment Share on other sites More sharing options...
Err Posted February 23, 2007 Share Posted February 23, 2007 Are you talking about the <tr> tag for Tables? If you are, then trying to declare CSS classes for links or anything other then a border or spacing will be of no use. Nothing is meant to get tagged for <tr> as it's only use is for a table break, and not text. You can still do it, but it's a very horrible markup pratice. Link to comment Share on other sites More sharing options...
jesh Posted February 23, 2007 Share Posted February 23, 2007 Are you talking about the <tr> tag for Tables? If you are, then trying to declare CSS classes for links or anything other then a border or spacing will be of no use. Unless you only want to style links that are in a row in a table that has a specific class. tr.AltRow td { background-color: #e4e4e4; }tr.AltRow a { color: green; }tr.AltRow a:hover { text-decoration: none; } Link to comment Share on other sites More sharing options...
croatiankid Posted February 23, 2007 Share Posted February 23, 2007 TR styling doesn't work in IE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now