I seem to have a massive problem with these, could someone explain what i am missing.
Idea
Want to place 3 60px x 60px boxs side by side with a 30px gap. All need to be relative.
My code
Problem
The boxs all overlap!
Help please
Thank you
James
Idea
Want to place 3 60px x 60px boxs side by side with a 30px gap. All need to be relative.
My code
Code:
<html>
<head>
</head>
<body>
<div id="Layer1" style="position:relative; left:100px; top:25%; width:60px; height:60px; z-index:1; background-color: #999900; layer-background-color: #999900; border: 1px none #000000;">
<div id="Layer2" style="position:relative; left:33px; width:60px; height:60px; z-index:2 background-color; background-color: #CC3366; layer-background-color: #CC3366; border: 1px none #000000;">
<div id="Layer3" style="position:relative; left:33px; width:60px; height:60px; z-index:3 background-color; background-color: #99CC66; layer-background-color: #99CC66; border: 1px none #000000;"></div>
</div>
</div>
</body>
</html>
Problem
The boxs all overlap!
Help please
Thank you
James