English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

css allows you to define "classes"
for example:



after you define your "classes" (using a dot notation .classname)
you assign them to a particular link:
A red link
Another red link
A green link
A black link

2006-11-04 08:21:03 · answer #1 · answered by ZressE 3 · 1 0

You can create different styles for links using class or ID designations. Four properties are defined for an anchor: link - what a link initially looks like, active - after you click it, hover - response to mouseover, and visited - link you have already used.

So to set link properties for a class called navbar:
.navbar a:link{...}
.navbar a:visited{...}
.navbar a:active{...}
.navbar a:hover{...}

You can apply the navbar class to any element that could contain a link - div, span, p, table, etc.

2006-11-04 17:37:37 · answer #2 · answered by injanier 7 · 1 0

fedest.com, questions and answers