Posts: 24
Location: Manchester, England, UK
|
I've managed the build the button in css but when I repeat the same method for the second button the margin doesnt seem to work right, so there is NO gap.
To view what I mean look here: http://www.mattbuk.com/test/scruples/product_boss.htm
The code on the page for the 2 buttons are
<div id="buttonArea">
<div id="boarder"
onMouseOver="this.style.border='3px double #CCCCCC'; this.style.color='#CCCCCC';"
onMouseOut="this.style.border='3px double #FFFFFF'; this.style.color='#FFFFFF';">
Home
</div>
<br />
<div id="boarder"
onMouseOver="this.style.border='3px double #CCCCCC'; this.style.color='#CCCCCC';"
onMouseOut="this.style.border='3px double #FFFFFF'; this.style.color='#FFFFFF';">
Home
</div>
</div>
and the styles for the id's are
#buttonArea{
left:21px;
top: 216px;
position:absolute;
}
#boarder{
width:114px;
height:20px;
position:absolute;
border: 3px double #FFFFFF;
margin:2px;
display:block;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#FFFFFF;
font-weight:bold;
padding-top:1px;
text-align:center;
cursor  ointer
}
Any help would be great 
Last edited by mattbuk; 07-04-2006 at 05:21 AM..
|