CSS: is there any way to have the same relative positioning even if the previous element have differ
- by Patrick
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