CSS how to change the color of a link within a class

Tags: html,css

Problem :

I have parts of my webpage what has a dark background, what I want is that just in that part the links are white, but I tried several things, it still is the darker color


.transback {
background: rgba(7, 7, 7, 0.7); 
.transback a:{


<div class="pure-u-14-24 transback">
    <a href="../gastenboek_bladeren.html">click here</a>

Solution :

Remove the colon after a in your CSS, it is not a valid selector. You can target a or a:link a:visited a:hover a:active but not a:

.transback {
  background: rgba(7, 7, 7, 0.7); 
  .transback a {
<div class="pure-u-14-24 transback">
    <a href="../gastenboek_bladeren.html">click here</a>

    CSS Howto..

    how to keep conditional CSS statements for internet explorer in Express (Node.js) template

    How to reverse direction of moving div once it reaches side of screen?

    How to apply a CSS style to div AND the div nested in the div [duplicate]

    How to create flexible div items that break after the line?

    How to preload style image to use it when server is down?

    How do I add two buttons side by side that are made up of an image?

    how to set footer at bottom?

    How to setup flexible box CSS through jQuery? css( display, '-moz-box') doesn't seem to work?

    ASP.Net MVC: How can I easily change the tab color of my navigation menu based on the tab that I'm on?

    How can I take just a part of CSS from other site's when using bootstrap?

    Bootstrap 3: How to code my banner?

    How do I move the background image of a DIV based on the scrollbar movement?

    how to give multiple colors in the same cell in a full calendar?

    How to centralise navigation bar

    How can I stop my CMS’s CSS affecting my content?

    How to style my HTML form using CSS

    how to do jquery once fade out has finished?

    How to add html code into html?

    How to style 3 (div) boxes using CSS

    How to convert 1 column records of dynamic table into hyperlink

    How to keep css style for only one element

    How to add css to dynamic div Id

    How do you create slidedown effects like this?

    How to add a rollover effect to the text on a map

    How to make height squeeze with css

    How do I expand this CSS list?

    How to create text block on image using just CSS

    How can I make an image carousel with only CSS?

    Showing Div via CSS selector within a UL

    How to change style to a class from a rel attribute CSS