Hello, this is just a wondering of a thought I had a long time ago but never asked…
It´s about menus and having one link selected.
On a few pages I have underlinks which I use php to include the textfile, which are A href tags. I have put a simpel arrow in a span inside the A tag which is invisible in the external css.
Every A tag has its own class ofcourse
Then on each page inside the Header, I have put an internal css to overule the invisible span to make the selected link arrow visible.
[CODE]
External css:
.selected {visibility:hidden}
Internal css:
.linkA .selected {visibility:visible}
Sub-menu in html wich is included with php include:
<a href=”pageA.php” class=”linkA”>A page <span class=”selected”>«</span></a>
<a href=”pageB.php” class=”linkB”>B page <span class=”selected”>«</span></a>
<a href=”pageC.php” class=”linkC”>C page <span class=”selected”>«</span></a>
<a href=”pageD.php” class=”linkD”>D page <span class=”selected”>«</span></a>
So the question is if this method is acceptable or is it a lazy man´s work which is only stupid to mix internal css with external ? Or are there better solutions for this matter perhaps. Then it might be more of a php issue rather than css I guess