Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts

    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

  • #2
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts
    The wip webpage for this is
    http://bardejov.org/index-1-15-13-v3.html

  • #3
    New Coder
    Join Date
    Oct 2012
    Posts
    44
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Target them as
    Code:
    #sideleft a:active
    etc.

  • Users who have thanked backa for this post:

    Bardejov (01-18-2013)

  • #4
    vjm
    vjm is offline
    New Coder
    Join Date
    Nov 2012
    Location
    PH
    Posts
    16
    Thanks
    1
    Thanked 2 Times in 2 Posts
    #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 */

  • Users who have thanked vjm for this post:

    Bardejov (01-18-2013)

  • #5
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    6
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Thanks for the fix.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •