My favorites | Sign in
Project Logo
                
Search
for
Updated Apr 08, 2008 by daz4126
LinksModule  
Notes on the Links Module.

Links Module

Location

/stylesheets/modules/links.css

Source Code

http://code.google.com/p/sparkl/source/browse/trunk/stylesheets/modules/links.css

Summary

The links module sets some basic behaviours for the <a> tag, including colours, hover state etc

HTML Design Pattern

This module affects all anchor tags, for example:

<a href="http://code.google.com/p/sparkl/wiki/LinkstModule" title="Links module documentation">

Description

The links module simply sets some basic styles for links and acts as a building block for further styles. It also adds a border on the bottom of images that are links to make them stand out from regular images.

Why It's Bulletproof

No reason in particular, really!

How it works

This module simply uses the pseudo-selectors such as :hover, :focus, :link, :visited and :active to style the anchor tags in a basic way. :hover and :focus are treated the same, as :focus seems to be used more with keyboard users and is almost the equivalent of hovering over the link. It is important to use the correct order of a:link, a:visited, a:hover and a:active so that the styles do not overwrite each other. To rememer this, use the acronym LoVe HAte.

IE Fixes

Internet Explorer doesn't seem to inherit styles from other pseudo-selectors, so common styles need repeating, otherwise it defaults to

Issues

None

Further Reading

Other Modules


Sign in to add a comment
Hosted by Google Code