...

View Full Version : Change a link color in a div inside a css file



Bardejov
01-18-2013, 10:37 AM
Hi,

Inside my css file for a html page I have this text that I need help


}


/* Sidebar Left
-----------------------------------------------------------------------------*/
#sideLeft {
float: left;
width: 112px;
margin-left: -100%;
position: relative;
background: #4DA1D4;
font-size: 14px;
padding: 0px 5px 0px 5px;
font: 18px Calibri, Arial, Tahoma, Verdana, sans-serif;


How do I control links here like
a:link {color:#FF0000;} /* unvisited link */
a:visited {color:#00FF00;} /* visited link */
a:hover {color:#FF00FF;} /* mouse over link */
a:active {color:#0000FF;} /* selected link */

for this


<div class="sidebar" id="sideLeft">
<a href="/bardejov/jewishhistory.html" target="_self">Jewish History of Bardejov</a><br><br>
</div><!-- .sidebar#sideLeft -->


}

Thank you,

David

Bardejov
01-18-2013, 11:20 AM
The wip webpage for this is
http://bardejov.org/index-1-15-13-v3.html

backa
01-18-2013, 12:28 PM
Target them as
#sideleft a:active etc.

vjm
01-18-2013, 12:52 PM
#sideLeft a:link {color:#FF0000;} /* unvisited link */
#sideLeft a:visited {color:#00FF00;} /* visited link */
#sideLeft a:hover {color:#FF00FF;} /* mouse over link */
#sideLeft a:active {color:#0000FF;} /* selected link */

Bardejov
01-18-2013, 03:58 PM
Thanks for the fix.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum