I'm just wondering if I'm doing right here..., maybe someone can help me.
In my stylesheet I have the code:
.leftmenu :link {...}
.leftmenu :visited {...}
.leftmenu :link:hover {...}
.leftmenu :visited:hover {...}
And in the html document (inside a table):
<div class="leftmenu">
<p><a href="something1.html">something1</a></p>
<p><a href="something2.html">something2</a></p>
</div>
This seems to works. Still feeling kind of worried, haven't seen this in any css syntax examples. I've just seen examples like this, where you have to put the class inside every <a>:
a.leftmenu :link {...} combined with
<a class="leftmenu" href="something.html">something</a>
Is "my" method correct?
In my stylesheet I have the code:
.leftmenu :link {...}
.leftmenu :visited {...}
.leftmenu :link:hover {...}
.leftmenu :visited:hover {...}
And in the html document (inside a table):
<div class="leftmenu">
<p><a href="something1.html">something1</a></p>
<p><a href="something2.html">something2</a></p>
</div>
This seems to works. Still feeling kind of worried, haven't seen this in any css syntax examples. I've just seen examples like this, where you have to put the class inside every <a>:
a.leftmenu :link {...} combined with
<a class="leftmenu" href="something.html">something</a>
Is "my" method correct?