New
Open/Save
Download
View Source
Examples
HTML Styling Links Example
This example will show you how to style HTML links with CSS.
HTML
CSS
JavaScript
Output
Live Updates
.style1 { display: inline-block; text-decoration: none; font-family: Tahoma, Geneva, sans-serif; background-color: #cccccc; padding: 10px; text-transform: uppercase; font-weight: bold; color: #4d4d4d; font-size: 12px; border-radius: 5px; border-bottom: 3px solid #4d4d4d; } .style1:hover { background-color: #bbbbbb; } .style2 { display: inline-block; font-family: Tahoma, Geneva, sans-serif; background: linear-gradient(to bottom, #6b758c, #51596b); padding: 15px; width: 200px; text-align: center; text-decoration: none; color: #f4f4f4; font-weight: bold; border: 1px solid #4d4d4d; box-shadow: inset 0px 0px 0px 1px #ffffff; } .style2:hover { background: linear-gradient(to bottom, #636d82, #4b5262); } .style2:active { background: linear-gradient(to bottom, #505869, #3c414e); } .style3 { display: inline-block; text-decoration: none; font-family: Tahoma, Geneva, sans-serif; background-color: #be4848; padding: 15px 25px 15px 25px; color: #ffffff; font-weight: bold; font-size: 12px; } .style3:hover { background-color: #4871be; transition: all 0.5s linear; }
Link 1
Link 2
Link 3