October 1, 200818 yr Got a Problem and can't remember how to do it. Have sorted my menu, and the rollover part. But for the life of me, I can't remember how to make it so people know what page they are on. Here's my code #menu { list-style:none; height:50px; position:relative; padding-top:218px; } #menu span { display:none; position:absolute; } #menu a { display:block; text-indent:-900%; position:absolute; outline:none; } #menu a:hover { background-position: left, bottom; } #menu a:hover span{ display:block; } #menu .home { width:76px; height:35px; background:url(images/home.gif) no-repeat; left:15px; top:73px; } #menu .home span { width:76px; height:35px; background:url(images/home-over.gif) no-repeat; left:0px; top:0px; } #menu .about { width:113px; height:36px; background:url(images/about.gif) no-repeat; left:96px; top:73px; } #menu .about span { width:113px; height:36px; background:url(images/about-over.gif) no-repeat; left:0px; top:0px; } #menu .services { width:107px; height:37px; background:url(images/services.gif) no-repeat; left:206px; top:73px; } #menu .services span { width:107px; height:37px; background:url(images/services-over.gif) no-repeat; left:0px; top:0px; } #menu .portfolio { width:119px; height:36px; background:url(images/portfolio.gif) no-repeat; left:306px; top:73px; } #menu .portfolio span { width:119px; height:36px; background:url(images/portfolio-over.gif) no-repeat; left:0px; top:0px; } #menu .contact { width:129px; height:36px; background:url(images/contact.gif) no-repeat; left:406px; top:73px; } #menu .contact span { width:129px; height:36px; background:url(images/contact-over.gif) no-repeat; left:0px; top:0px; }
October 2, 200818 yr That's a tutorial where I learnt the method. http://www.subcide.com/tutorials/csslayout/
October 3, 200818 yr Author Had a bit of an epiphany! I remember adding a body id, but that's all I remember.
Create an account or sign in to comment