Jump to content

css tr help


houssam_ballout

Recommended Posts

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

  • 1 month later...

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...