View Full Version : making css menu
alanuofm
07-29-2006, 07:12 AM
I'm making css menu type links. They look almost like folders. The issue is i want it to stay highlighted when the link is chosen. I figured there would be something like a:selected but i guess there isn't. Is there another way to accomplish this without just css?
BonRouge
07-29-2006, 10:09 AM
http://bonrouge.com/br.php?page=current2
RexxCrow
07-29-2006, 12:16 PM
CSS would be limited in this aspect, you would really need a JS function to do it very effectively, but after searching this is basically workable...
Check these pages out, this illustrates what are attempting for the most part:
(the code from them is below.)
http://www.wpdfd.com/editorial/basics/mypage8b.html
A few tips:
http://www.wpdfd.com/editorial/basics/cssbasics6.html
Here is the code for the source notice only the current page being visited it different all the others are identical you might even be able inline them all in-order to prevent redundancy i.e. 'a:link, a:hover, a:active {rules}'
but that might cause a conflict by putting the 'a:visted' out of it's order.
a:link {
color: #00c;
text-decoration: none;
background-color: transparent }
a:visited {
color: #90c;
text-decoration: none;
background-color: transparent }
a:hover {
color: #0c0;
text-decoration: none;
background-color: #ff0 }
a:active {
color: #c00;
text-decoration: none;
background-color: transparent }
<INSIDE of BODY>-
<a href="mypage8.html">home page</a> | <a href="mypage8a.html">new york</a> | <b>tunis</b> | <a href="mypage8.html#myanchor">amsterdam</a>
RexxCrow
07-29-2006, 03:43 PM
Just found this site looked pretty creative and nifty!
http://www.webcredible.co.uk/
CCS code:
http://www.webcredible.co.uk/wcs.css
BonRouge
07-29-2006, 06:04 PM
The top menu on that site uses this kind of idea: http://bonrouge.com/br.php?page=currentcss
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.