Don't be surprised if you see some kind of underlined link in the picture. Because it’s actually very simple and you can do it, too. Check out the actual effect here http://5key.net/demo/hyperlink-underline ![]() First, let's talk about how to get this colored underline. Maybe you have guessed it, a gradient background image. That’s right! It’s the picture below. ![]() Take a look at the CSS below. I think you should have understood the effect of the entire link change. If it's not too clear. Let's first understand the concept of sliding door body { font-size:14px; font-family: Helvetica, sans-serif; padding:10px; margin:0px; } h1{margin:0; padding:0; font-size:16px; } p{padding:20px 0 0 0;} a{ *padding-bottom:1px; text-decoration:none; } a:link{ color:#06F; background: url(1.gif); background-repeat: repeat-x; background-position: 0 16px; } a:visited{ color:#06f; background-image: url(1.gif); background-repeat: repeat-x; background-position: 0 16px; } a:hover{ color:#039; background:url(1.gif) repeat-x 0 bottom; } |
<<: How to use shell to perform batch operations on multiple servers
I have been learning about algorithms recently an...
When the page is not responding, displaying the l...
Preface This article mainly introduces the releva...
Table of contents Preface optimization Extract va...
1. Create a repository in the specified directory...
If this is the first time you install MySQL on yo...
Preface Adding drag and drop functionality is a g...
Table of contents 1. What is a database? 2. Class...
MySQL and connection related timeouts Preface: To...
1. Install tools and libraries # PCRE is a Perl l...
Aggregating data from various sources allows the ...
I encountered a strange network problem today. I ...
Msyql database installation, for your reference, ...
1. Natural layout <br />The layout without a...
<br />Since the Ministry of Foreign Affairs ...