Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

styling links inside a div with a specific class

Tags:

css

I am wondering how i would be able to style links inside a given div with a given class like

.navigation-div : a:link,a:visited {
  color:red;
  }

Some html

  <div class="navigation-div">
  <a href="home.php">Home</a>
  <a href="home.php">List</a>
  <a href="home.php">Download</a>
  <a href="home.php">Files Used</a>
  <a href="home.php">Documentation</a>
  </div>

  <div class="client-header">
  <h1><a href="home.php">CRUD Application</a></h1>
  </div>

Is there a selector for this kind of thing?.

like image 452
Gandalf Avatar asked Jul 06 '12 16:07

Gandalf


1 Answers

.navigation-div a:link, .navigation-div a:visited {
    color:red;
}

jsFiddle example

like image 109
j08691 Avatar answered Nov 16 '22 15:11

j08691