Click to See Complete Forum and Search --> : Only apply if tag is last element.
R.Noon
04-07-2006, 11:06 AM
Alright, we all know how to use the
* a{
color="#000000";
}
How would I do something that would make sure that the "a" in this case is the very last element?
LiLcRaZyFuZzY
04-07-2006, 11:19 AM
very last element of what?
plus, we all know that it's color: #000, not color="#000" ;) :p
R.Noon
04-07-2006, 11:53 AM
The last element specified.
<ul><li><ul><li><a><ul><li>
It wouldn't work in that case, but if we had.
<ul><li><ul><li><a>
Then it would work
felgall
04-07-2006, 06:17 PM
None of that is valid HTML the </a></li></ul> tags are all required and need to come after that one. You can specify CSS for a specific depth of nesting within other tags but you can't specify that the innermost level should have a specific style applied unless you give it a class.