CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   Change a link color in a div inside a css file (http://www.codingforums.com/showthread.php?t=285999)

Bardejov 01-18-2013 09:37 AM

Change a link color in a div inside a css file
 
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
Code:

                <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 10:20 AM

The wip webpage for this is
http://bardejov.org/index-1-15-13-v3.html

backa 01-18-2013 11:28 AM

Target them as
Code:

#sideleft a:active
etc.

vjm 01-18-2013 11:52 AM

#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 02:58 PM

Thanks for the fix.


All times are GMT +1. The time now is 01:47 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.