tags:

views:

17

answers:

2

Say I have an element with position absolute, with a value set for left;

#myElement {position:absolute; left:20px; top:0}

If I need to have a class which I can apply to shift the element to the other side I might define something like

#myElement.right {right:20px;}

But is there a way I can clear the value for left:20px?

+2  A: 

left: inherit?

Tom
bingo plus sme characters to fill space
wheresrhys
A: 

Or use sensible classes:

#myElement { position: absolute; top: 0; }
#myElement.left { left: 20px; }
#myElement.right { right:20px; }
BalusC