473,382 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ


Anchor Text

By Mark Hardy
Administrator, TheScripts.com

Anchors

The A defintion defines all the links on the page that don't have a specific class referenced in their HTML code. This is a very simple definition for A, and will be quick. As well, don't see a need to repeat any of the previously mentioned properties.

A {
  text-decoration:underline;
  color:8B0000;
}

text-decoration:underline;

The text-decoration property defines what kind of embellishment will be put on the text. There are a few options for this one :

A:HOVER

A:HOVER{
  font-weight:bold;
  color:8B0000;
}

While there are no new definitions or properties in this sub-class it is important that I point out to you the use of HOVER. HOVER enacts a specific sub-class for an element whenever the mouse passes over the element. This particular one will define the very popular text rollover by changing its elements.

A.SUBNAV

A.SUBNAV {
  text-decoration:none;
  color:000000;
  font-size:10pt;
}

Again there is nothing new with this one, save for the .SUBNAV part. CSS allows you to define different classes for the same type of element. This is very useful when you have different types of text, or different types of links that need to be differentiated from each other. To call into action one of these different classes you simply add CLASS="classname" to the element.

e.g.

<A HREF="http://www.site.com" CLASS="SUBNAV">

« INPUT.TEXT  

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.