Css positioning problem
Posted
by 2x2p1p
on Stack Overflow
See other posts from Stack Overflow
or by 2x2p1p
Published on 2010-06-17T00:20:00Z
Indexed on
2010/06/17
0:22 UTC
Read the original article
Hit count: 585
Hi guys.
I did a "shadow" effect but the "div" elements must have a relationship (father and son)
<style>
div {
left: 3px;
position: absolute;
font-size: 60px;
top: 3px;
}
div + div {
position: relative;
}
</style>
<div>
shadow
<div>
shadow
</div>
</div>
Can I make the same thing with separate elements like this bellow ?
<div>shadow</div>
<div>shadow</div>
Thanks :)
© Stack Overflow or respective owner