CSS: is there any way to have the same relative positioning even if the previous element have differ

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-05-19T16:17:06Z Indexed on 2010/05/19 16:30 UTC
Read the original article Hit count: 113

Filed under:

hi,

I have a sequence of couples of elements. (.div1, .div2) I'm using position:relative attribute on .div2 to move it a bit on top and right with respect to div1.

However .div1 elements have different content and heights, so the relative positioning of .div2 is not consistent (they sometimes are too high, sometimes too low).

.div2 {
    position:relative;
    left:200px;
    top:-300;   
}

thanks

© Stack Overflow or respective owner

Related posts about css