Forum Moderators: not2easy
DIV {
font-size: 10px;
font-family: arial .......
color: #000000;
text-align: center;
}
#Register {
height: 14px; width: 142px;
background: #C8CCD5;
padding-top: 2px;
padding-bottom: 2px;
border: solid;
border-width: 1px;
border-color: #5A6781;
}
#Register:hover {
height: 14px; width: 142px;
background: #FFFFFF;
padding-top: 2px;
padding-bottom: 2px;
border: solid;
border-width: 1px;
border-color: #5A6781;
}
I tweaked the code a bit. You have some extra stuff, and some long winded stuff. #Register:hover will inherit both the padding and border. These can both be shorthanded as well.
I've been working with this same issue, and this source whatever:hover [xs4all.nl] has been very helpful. Thanks to Dr. Doc for sending me to it.
<style>
div {
font-size: 10px;
font-family: Arial, sans-serif;
color: #000;
text-align: center;
}
#Register {
height: 14px;
width: 142px;
background: #c8ccd5;
padding: 2px 0;
border: 2px solid #5a6781;
}
#Register:hover {
height: 14px;
width: 142px;
background: #fff;
}
</style>
<body>
<div id="Register">
test text
</div>
</body>
I see lots of px. Would em or % be useful to you?
and yes... I really do need to start testing in more browsers.. as I'm just starting to do lots more webdesign work compared to what i've been used to.
Thanks again