How to cancel left or right rules with an !important tag?


Tags: html,css

Problem :

I need to cancel a left rule in a CSS file and replace it with margin-left:

.aClass {
    left: 5px;
} 

Rule to override:

.aClass {
    left: none !important;
    margin-left: 5px;
}

but left: none doesn't seem to do nothing and left: 0 is repositioning the layer. So how to cancel the left rule? I shouldn't override the original rule, as it is a part of a plugin and it could be updated overriding the existing file.



Solution :

Use left: auto !important; instead of left: none !important;


    CSS Howto..

    How to change the background colour of a QWidget inside QStackedWidget using css?

    How to let users have the latest non cached code?

    How to test print output of browsers with online tools?

    How to add a media attribute to the CSS LINK html tag for the ASP.NET WebResource.axd Http Handler

    How to place html css php in javascript (Jquery)

    How can i apply background-image to low div

    How to remove space above the
    tag?

    how to add inline css to rails link_to helper

    How to make LESS combine CSS rules with a comma

    jQuery Slideshow in Chrome, Firefox, and Safari

    How do I use CSS to reposition this image?

    Using SASS how to prevent a css file from being generated inside of the SASS folder?

    How to properly apply WinJS.Binding.Template ListView GridLayout CSS?

    how can resize the page? [closed]

    How to make cut off in CSS as shown in the attached image?

    How to use modernizr for border-image

    How do I make a table's columns fill the width not occupied by fixed-width columns?

    How to create a underline with small break in middle with css?

    How to make an image resize to the screens height with CSS?

    How to style more than one ul

    How to make one side of a div pointy with CSS?

    How to create a custom vaadin component in vaadin 6

    How to display search icon on right side through css?

    How to Apply CSS to element added by Javascript

    How would I replicate this input text effect where they're almost a merged box in CSS/HTML?

    How to animate CSS with a delay between an unknown number of elements [duplicate]

    how to change the css in td on mouse click using javascript

    How to get different style in nested element depending to depth level?

    How to manage div positionning?

    How can I add CSS animation to an element on a web page? [closed]