Featured Tutorials

software articles, windows media center, bug fixes, fixing covers,cover art,media centre covers,media center covers,fixing album covers,album covers,microsoft media center Fixing Media Center Album covers

Fixing Media Center Album covers

Great software for fixing those annoying unknown and broken covers..

glass effect,glass text,logo on glass,logo on texture,text on glass,beer glass,beer photoshop,photoshop tutorial,blendning options,budweiser beer Adding Logos or Text to a Glass or Textured Surface

Adding Logos or Text to a Glass or Textured Surface

This one is a useful technique to learn in order to add logos or text to a textured surfac..

nav bar,nav in photoshop,navigation,photoshop navigation,nav bar in photoshop,photoshop tutorial,photoshop layout,website layout,website in photoshop,photoshop design How to create a Stylish Navigation Bar in Photoshop

How to create a Stylish Navigation Bar in Photoshop

This tutorial will show you step by step how to create this stylish web 2.0 navigation bar..

flash,exe,fullscreen,fscommand,fs command,auto run,autorun,autorun.inf,autorun.bat,autorun cd,cd,fullscreen flash,flash for cd,flash presentation Flash EXE Presentation for an Auto-Run CD

Flash EXE Presentation for an Auto-Run CD

This article will teach you how to create an Auto run CD for a fullscreen Flash presentati..

flash,game design,platform shooter,side scrolling,platform games,duplicate movie clips,keyboard input,key input,key press,movement in flash,user controlled,flash game design,how to design games Flash Game Design, Jet Fighter Shooter

Flash Game Design, Jet Fighter Shooter

Learn some of the basics scripts used to create this side scrolling jet fighter game. Lear..

Featured Videos

This tutorial will teach you how to create a dynamic drop down me..

Learn basic web design and seo skills, also explains what meta ta..

This is the second part of the Exploding earth tutorial. In this ..

This video shows off the power of 3D software with realistic faci..

This video will show you in stages how to realistically color a b..

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