Genie1
Dec 7th, 2008, 11:15 PM
Hi CDF Team,
I have been trying to do some hover buttons,
This is how it looks:
http://img132.imageshack.us/img132/7709/vhgk2.gif
The left(blue background) is what i want but i want it to be listed horizontally not vertical.
My CSS code
#homeBT {
background-image: url(images/hoverbt.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
color: #FFFFFF;
font-weight:bold;
}
#homeBT a{
background-image:url(images/hoverbtN.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
display: block;
text-decoration: none;
color: #FFFFFF;
padding: 3px 0px 6px 12px;
}
#homeBT a:hover{
background: none;
}
#aboutusBT {
background-image: url(images/hoverbt.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
color: #FFFFFF;
font-weight:bold;
}
#aboutusBT a{
background-image:url(images/hoverbtN.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
display: block;
text-decoration: none;
color: #FFFFFF;
padding: 3px 0px 6px 12px;
}
#aboutusBT a:hover{
background: none;
}
#contactusBT {
background-image: url(images/hoverbt.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
color: #FFFFFF;
font-weight:bold;
}
#contactusBT a{
background-image:url(images/hoverbtN.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
display: block;
text-decoration: none;
color: #FFFFFF;
padding: 3px 0px 6px 12px;
}
#contactusBT a:hover{
background: none;
}
My HTML code:
<div id="homeBT">
<a href="index.html" title="Home" target="_self">Home</a>
</div>
<div id="aboutusBT">
<a href="aboutus.html" title="About us" target="_self">About Us</a>
</div>
<div id="contactusBT">
<a href="contactus.html" title="Contact us" target="_self">Contact us</a>
</div>
Thank you for helping out.
Thank you
I have been trying to do some hover buttons,
This is how it looks:
http://img132.imageshack.us/img132/7709/vhgk2.gif
The left(blue background) is what i want but i want it to be listed horizontally not vertical.
My CSS code
#homeBT {
background-image: url(images/hoverbt.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
color: #FFFFFF;
font-weight:bold;
}
#homeBT a{
background-image:url(images/hoverbtN.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
display: block;
text-decoration: none;
color: #FFFFFF;
padding: 3px 0px 6px 12px;
}
#homeBT a:hover{
background: none;
}
#aboutusBT {
background-image: url(images/hoverbt.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
color: #FFFFFF;
font-weight:bold;
}
#aboutusBT a{
background-image:url(images/hoverbtN.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
display: block;
text-decoration: none;
color: #FFFFFF;
padding: 3px 0px 6px 12px;
}
#aboutusBT a:hover{
background: none;
}
#contactusBT {
background-image: url(images/hoverbt.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
color: #FFFFFF;
font-weight:bold;
}
#contactusBT a{
background-image:url(images/hoverbtN.gif);
background-repeat: no-repeat;
height: 28px;
width: 100px;
display: block;
text-decoration: none;
color: #FFFFFF;
padding: 3px 0px 6px 12px;
}
#contactusBT a:hover{
background: none;
}
My HTML code:
<div id="homeBT">
<a href="index.html" title="Home" target="_self">Home</a>
</div>
<div id="aboutusBT">
<a href="aboutus.html" title="About us" target="_self">About Us</a>
</div>
<div id="contactusBT">
<a href="contactus.html" title="Contact us" target="_self">Contact us</a>
</div>
Thank you for helping out.
Thank you