Featured Tutorials

photoshop background,brush effects,vector effects,filter effects,photoshop effects,photoshop brushes,vector photoshop,dotted background,dotted vector Snazzy Vector Background Effect in Photoshop

Snazzy Vector Background Effect in Photoshop

This simple but effective tutorial teaches you how to create a cool vector pattern backgro..

New, Year, Screen, Saver, create 3 Ways to Create New Year Screen Saver

3 Ways to Create New Year Screen Saver

3 Ways to create New Year screen saver for your computer. You could add make an animated s..

hardware articles, CD, DVD, cleaning, home remedy,cds with toothpaste,toothpaste,clean with toothpaste,dvds toothpaste,clean dvd,how to clean cds,how to clean dvd,dvd cleaner Clean your CD's/DVD's with toothpaste!

Clean your CD's/DVD's with toothpaste!

The low-cost answer to keeping your CD's/DVD's clean and functional...

realistic,graffiti,photoshop,grafiti,grafitti,,photo,photograph,texture,wall textures,how to graffiti,grafitti in photoshop,photoshop brushes,custom brushes Adding Realistic Graffiti to a Photograph in Photoshop

Adding Realistic Graffiti to a Photograph in Photoshop

This tutorial will show you how to add realistic looking graffiti to a photograph or wall ..

css tutorial,css tutorials,css backgrounds,backgrounds in css,css,backgrounds,background,background image,background shorthand,short hand css,learn css,learn css backgrounds Learn CSS: Background Images

Learn CSS: Background Images

This simple tutorial will teach you about the background property in CSS, there are many w..

Featured Videos

A useful tutorial for creating an Ethernet or Patch Cable for net..

Heres some great inspiration for logo design with examples of mod..

This spoof advert copies the popular Citroen C4 commercials and s..

A great example of how the many Photoshop tools can be used to im..

Particle Illusion is one of those cool particle effect programs t..

Learn CSS: Link Classes

Basic Links

When you create a link in CSS it can be just a standard link with a few basic properties simular to standard HTML links, heres an example:

As a class in your stylesheet document

a {font-family:Verdana; font-size: 12pt; color: black; font-weight: bold;}

or directly within an <a> tag

<a style="font-family:Verdana; font-size: 12pt; color: black; font-weight: bold;">Link Example</a>

 

Link Properties

Here a list of the additional properties that you can apply to your links:

color: black;
color: #000000;
font-weight: bold;
font-weight: normal;
font-size: 10pt;
font-size: 10px;
text-decoration: none;
text-decoration: underline;
text-decoration: overline;
text-decoration: line-through;

 

Dynamic Links (Pseudo-classes)

If you want your links to do more you will need to add classes to them within your stylesheet document, below are some example of links that use different classes:

a:link {font-family: Verdana; font-size: 12pt; color: black;}
a:active {font-family: Verdana; font-size: 12pt; color: black;}
a:visited {font-family: Verdana; font-size: 12pt; color: grey;}
a:hover {font-family: Verdana; font-size: 12pt; color: red; font-weight: bold;}

Link example 1

This example has not been given any class before the ":link :acive :visited or :hover" this means that these settings will effect all <a> tag links that havent been given a class a bit like a universal setting.

 

a.example12link {font-family: Verdana; font-size: 12pt; color: black; text-decoration: none;}
a.example2:active {font-family: Verdana; font-size: 12pt; color: black; text-decoration: none;}
a.example2:visited {font-family: Verdana; font-size: 12pt; color: grey; text-decoration: none;}
a.example2:hover {font-family: Verdana; font-size: 12pt; color: grey; text-decoration: underline;}

Link example 2

This example has been given a class as you can see above with "a.example2:link". All you need to add to your <a> tag is:

<a class="example2">Link example 2</a>

 

More Web Design...

Other Content...

 Subscribe to our feed

Send to a friend