html - Set colour in CSS for link -


i trying set colour on link green unable work out. assistance appreciated!

the code:

        <div id="column-2" class="col2">             <div class="off">                 <h2 class="schoolproject" rel="column-2">                     school project                 </h2>                 <div class="image">                     &#160;                 </div>                 <center>                     <a id="test" href="projectone.aspx">project one</a>                     <br /> 

i trying the link "project one" green. can please advise should add in underlying css file?

.page-wrapper div.services-us-wrapper div.col2 div.test { color:green; }

thank you

p

your selector says div.test but:

  • there no divs member of test class
  • the anchor has id test

you need write selector matches anchor.

replacing div.test a that.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -