.Matt, on May 22 2006, 08:12 PM, said:
You dont turn divs into hyperlinks, you either use styled lists or blocked hyperlinks
To get a hyperlink to change bg colour when hover'ed you would use this:
a:hover {
background-color: #(colour);
}
for a div....*shockingly*
.divclass:hover {
background-colour: #(color);
}
Quote
2. How do I make the whole div a link, so when they put the mouse anywhere over it...it shows that its a link?
You dont use div's as links as explained above
Some people like to code for IE...
For your border (didn't define the border style, I also changed your margin, IE doesn;t like margin-top):
#home
{
margin: 94px 0 0 0;
background-color: #8dbcde;
border-color: #345e88;
border-width: 1px;
border-style: solid;
width: 139px;
height: 20px;
position: absolute;
text-align: center;
vertical-align: middle;
font-family: Tahoma;
font-size: 12px;
color: white;
font-weight:bold;
}
For vertically aligned text you need to get a balance between the top padding and height.
I'm not sure what #home is, whether it only has links inside it, whether it is like a container or what.
But if it only has links make your HTML
<div id="home"><a href="http://www.skinsforwp.com/" title="WordPress Themes">WordPress Themes</a>
then your CSS
#home a {
dispay: block;
height: 1px;
width: 1px;
}
Obivously give realistic width/height values.
Good luck