hi,
i was wondering if there was a way to do this with css so that the user will know what page they're on. i tried doing it in html with class selectors and inline styles, but it's not working.
for example, on my nav bar, i have three pages. 'about', 'contact', and 'portfolio'. the text colors are black by default, but change to pink when you hover over them. i would like the pink color to stay when you're on that page. so 'contact' would stay pink after you click on the page. however, the text link colors don't seem to be changing. any ideas? (snipped a bit of the top part since i can't include links.)
Code:<div id="navigation"> <ul> <li><a href="about***">about</a></li> <li><a href="portfolio***">portfolio</a></li <li><a href="contact***">contact</a></li> </ul> </div><!--end of navigation div--> <div id="bodycontent"> <div id="contactheader"> <h2>CONTACT</h2> </div> <div id="contact"> <img src="imagescontact.png"> </div> <ul id="contact"> <li class="blackfont">WANT</li> <li class="pinkfont">PURE?</li> </ul <p class="pinkfont">CONTACT9999PURCOM</p> </body> </div> </html> /* CSS for Will Portfolio site */ html { margin:-10px; padding: 0px; height: 1000px; width: 850px; margin-left: auto; margin-right: auto; } body { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; margin-left: auto; margin-right: auto; text-align: left; } a { font-weight: light; color: black; text-decoration: none; } a:link { text-decoration: none; } a:visited { color: black; text-decoration: none; } a:hover { text-decoration: none; color: #ec008c; } a: active { text-decoration: none; color: #ec008c; } li { list-style-type: none; } #bodycontent { font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 25px; font-weight:normal; width: 1000px; clear: left; padding-top: 34px; } div#navigation { height: 30px; width: 400px; margin: 0 0 0 105; padding: 75px 0 0 20px; float: right; } div#navigation li{ display: inline; float: right; margin: 0 5px 0 25px; width: 75px text-align; left; } div#header img{ float:left; width: 300px; display: block; } h2 { font-family: Arial, Helvetica, sans-serif; font-size: 25px; font-weight:bold; padding: 18px; } div#container { margin: 0px auto; width: 1000px; } div#links li{ margin: 0 0 0 -23px; } a img { border-style: none; display: block; } div#contactheader { float:left; } div#contact { padding: 30px 0 0 210px; } .blackfont { font-size: 18px; font-weight:bold; } .pinkfont { font-size: 18px; font-weight:bold; color: #ec008c; } .pink { color: #ec008c; }







Bookmarks