curly_brackets
curly_brackets

Reputation: 5598

CSS: Not overwrite but reset to "normal"

I'm working on a website, and I stumbled on a issue I've been thinking about some time now.

Somewhere in the CSS-file I defined "Left: 12px" but afterwards some class'es overlap. I want to set "right: 25px" on the same object. But then I have to eliminate the "left"...

If this was a background, I could set it to "none", and then it was cleared - but is this possible to a "left"??

Thank you in advance.

Upvotes: 3

Views: 171

Answers (3)

janhartmann
janhartmann

Reputation: 15003

Try

left: auto;

Upvotes: 4

Colin Fine
Colin Fine

Reputation: 3364

I think what you are looking for is:

left:auto;

Upvotes: 3

curly_brackets
curly_brackets

Reputation: 5598

The answer is to set "Left" to "auto" ... okay, I have to go to bed now... :-/

Upvotes: 2

Related Questions