HTML and CSS Reference
In-Depth Information
The display:block declaration converts the linked text to more of a button-like behavior.
Whenever the user's mouse hovers anywhere over the rectangle (or box) defined by the padding,
margins, width, and height of the linked text or image, the pointer symbol is displayed, as shown in
Figure 15-2.
FiGure 15-2
Quite often, there is a change specified in the hover state to either the text or background color (or
both) to indicate a live link. It's not uncommon for a background image to be temporarily replaced
on hover, either.
Try iT
In this Try It you learn how to create a horizontal navigation bar.
Lesson requirements
You will need the tpa.html file from the Lesson_15 folder, as well as a text editor and web browser.
You can download the code and resources for this lesson from the topic's web
page at .
Search WWH ::

Custom Search