It turns out it's quite easy to do, at least in firefox and safari on a mac and IE7 on a PC.
Here's how:
<div style="border: 5px solid yellow; height: 90px; width: 100px; background-color: yellow; margin:0;">
<div style="height: 90px; width: 90px; background-color: blue; float: right; margin:0"></div>
<div style="height: 20px; width: 50px; background-color: red; margin:0; margin-top: -20px; float: right "></div>
</div>
The yellow is in the background - the blue div is nested. The red div is on the blue div - floated right (this is optional) with a negative margin.
Try it out on your own or view source.
No comments:
Post a Comment