body {background-color:#080808;}

.Text{
color:white;
text-align:center
}

.titel{
color:red;
font-size:350%;
text-align:center

}

ul.nav
{
list-style-type:none;
text-align:center
padding:0;
position:relative;
left:33%;
}

a:link,a:visited
{
float:left;
margin: 0 auto;
display:block;
font-weight:bold;
color:#FFFFFF;
background-color:red;
width:120px;
text-align:center;
padding:4px;
text-decoration:none;
text-transform:uppercase;
}
a:hover,a:active
{
background-color:#E60000;
}

How can I make the a:link, a:visited and a:hover, a:active so it only works on my .nav class?
I don't want all the links I place on my site to become red blocks. only the ones in my .nav class.

hope u guys can help

You can be more specific in your selectors then. For example...

 ul.nav a { ... }
 ul.nav a:link { ... }

These selectors will only target an him links within your ul elements that have a class of "nav".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.