Dears,
I have simple <div> block and I would like to add three <a> with rollovers, what is the best way to do so. I did the following and I am not sure if this is the right thing to do
HTML
CSS
I have simple <div> block and I would like to add three <a> with rollovers, what is the best way to do so. I did the following and I am not sure if this is the right thing to do
HTML
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"">
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta name="generator"
content="HTML Tidy for Linux/x86 (vers 1st September 2002), see [URL unfurl="true"]www.w3.org"[/URL] />
<meta http-equiv="content-type"
content="text/html; charset=UTF-8" />
<meta name="description" content="{!METAWORDS!}" />
<title>{!TITLE!}</title>
<link rel="stylesheet" href="/src/css/mz.css" type="text/css" />
</head>
<body>
<div id="upr_mnu">
<a id="a1" href="#"></a>
<a id="a2" href="#"></a>
<a id="a3" href="#"></a>
</div>
</body>
</html>
CSS
Code:
body{
margin:0px;
padding:0px;
font-size:medium;
font-family: verdana, arial, helvetica, sans-serif;
background: #F6F6F6;
/*text-align:center;*/
}
div#upr_mnu {
width:750px;
height:22px;
padding: 0 1px 0 0;
margin: 0 auto 0 auto ;
background: #235DA8;
}
a#a1
{
background: url("/src/images/mainpage.png") no-repeat;
width:110px;
height:20px;
float:right;
}
a#a1:hover{
background: url("/src/images/mainpagew.png") no-repeat;
}
a#a2
{display:block;
background: url("/src/images/about.png") no-repeat;
width:70px;
height:20px;
float:right;
}
a#a2:hover{background: url("/src/images/aboutw.png") no-repeat;}
a#a3
{
display:block;
background: url("/src/images/contactus.png") no-repeat;
width:58px;
height:20px;
float:right;
}
a#a3:hover{background: url("/src/images/contactusw.png") no-repeat;}