Quantcast
Channel: Programming – Programming blog – website programming blog, blog on website programming .net, java , php and mor
Viewing all articles
Browse latest Browse all 31

Creating Link Boxes in CSS

$
0
0

<html>
<head>
<style type="text/css">
a:link,a:visited
//Styles to be applied in link Box

{
display:block;
font-weight:bold;
color:#FFFFFF;
background-color:#98bf21;
width:120px;
text-align:center;
padding:4px;
text-decoration:none;
}
a:hover,a:active
{
background-color:#7A991A;
}
</style>
</head>

<body>
<a href="default.asp" target="_blank">This is a link</a>
</body>
</html>

Output:

The link box will be created with the Specified Styles.


Viewing all articles
Browse latest Browse all 31

Trending Articles