Can I define a css to work inside of a table or td or div?
I know I can define a custom pseudo-class for an anchor like this ->
a.thisStyle:hover{ theDefinition }
<a href=http://www.webdeveloper.com/forum/archive/index.php/"thePage.html" class="thisStyle">The Page</a>
<-
but I want to define a class for entire table (or div) like ->
<table class="thisStyle">
<-
and have the class style thisStyle work for all anchors in that table. I this possible?#someTable a.someStyle:hover { ... }
.
.
.
<table id="someTable">
...
<td><a href=http://www.webdeveloper.com/forum/archive/index.php/"" class="someStyle">Link text</a></td>
The space between #someTable and a.someStyle:hover is called the descendant selector. It will apply a style to any anchor tag with the class "someStyle" inside the table with ID "someTable." In many ways, you wouldn't need the class for the <a> tag.
I know I can define a custom pseudo-class for an anchor like this ->
a.thisStyle:hover{ theDefinition }
<a href=http://www.webdeveloper.com/forum/archive/index.php/"thePage.html" class="thisStyle">The Page</a>
<-
but I want to define a class for entire table (or div) like ->
<table class="thisStyle">
<-
and have the class style thisStyle work for all anchors in that table. I this possible?#someTable a.someStyle:hover { ... }
.
.
.
<table id="someTable">
...
<td><a href=http://www.webdeveloper.com/forum/archive/index.php/"" class="someStyle">Link text</a></td>
The space between #someTable and a.someStyle:hover is called the descendant selector. It will apply a style to any anchor tag with the class "someStyle" inside the table with ID "someTable." In many ways, you wouldn't need the class for the <a> tag.