How can I replace left CSS attribute (set in .css file) with right CSS attribute dynamically?

bwright

I am working with a pre-existing javascript plugin (a slider) that aligns one of it's internal elements (navigation icons) with "left:50px". Under very specific circumstances, I want to align this to the right, using "right:50px" instead. The problem is that when I add "right:50px" to it inline, the right property is still over-ruled by the pre-existing "left:50px" property that is set in the plugin's .css file. I have been unsuccessful in finding a way to remove the left property, or to overwrite it with some other value, such as "left:none".

Is there a way around this?

CherryFlavourPez

You want:

left: auto;

Along with setting the right property. It's not that your right declaration is being ignored, rather it will be applied at the same time as the existing left.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I show an attribute as text with CSS?

From Dev

How can I modify specific attribute in CSS

From Dev

How can I show an attribute as text with CSS?

From Dev

How can I check a CSS attribute on an <a> tag?

From Dev

Undefined CSS attribute (top/left)

From Dev

How can I select an element by an attribute set on its parent using CSS 2.0 selectors?

From Dev

How can I add a gradient overlay to an image that is set in a style attribute in css?

From Dev

How can I select an element by an attribute set on its parent using CSS 2.0 selectors?

From Dev

How can I use the HTML data attribute in CSS as a property?

From Dev

How to set body attribute in css using angularjs?

From Dev

How to set css attribute for pseudo element in Dart

From Dev

how to css for data attribute

From Dev

Using jQuery to set CSS attribute

From Dev

Using jQuery to set CSS attribute

From Dev

How do I change a CSS attribute by getting an attribute on an HTML tag?

From Dev

How to dynamically change CSS style attribute of DIV tag?

From Dev

How to dynamically change CSS style attribute of DIV tag?

From Java

Apply CSS style attribute dynamically in Angular JS

From Dev

Why can't I set a css attribute to my array. Coding for Hangman Javascript

From Dev

How can I move text to the left with CSS?

From Dev

How can I fix this css left alignment?

From Dev

How can I type hint a dynamically set class attribute in a metaclass?

From Dev

How to wait for a css attribute to change?

From Dev

How can I achieve float left at bottom and float right at top with css flexbox?

From Dev

How to apply @media for css attribute that are set via jquery

From Dev

How can I replace inline styles in css

From Dev

CSS margin left and right

From Dev

css - shadow on right and left

From Dev

css outline left and right

Related Related

  1. 1

    How can I show an attribute as text with CSS?

  2. 2

    How can I modify specific attribute in CSS

  3. 3

    How can I show an attribute as text with CSS?

  4. 4

    How can I check a CSS attribute on an <a> tag?

  5. 5

    Undefined CSS attribute (top/left)

  6. 6

    How can I select an element by an attribute set on its parent using CSS 2.0 selectors?

  7. 7

    How can I add a gradient overlay to an image that is set in a style attribute in css?

  8. 8

    How can I select an element by an attribute set on its parent using CSS 2.0 selectors?

  9. 9

    How can I use the HTML data attribute in CSS as a property?

  10. 10

    How to set body attribute in css using angularjs?

  11. 11

    How to set css attribute for pseudo element in Dart

  12. 12

    how to css for data attribute

  13. 13

    Using jQuery to set CSS attribute

  14. 14

    Using jQuery to set CSS attribute

  15. 15

    How do I change a CSS attribute by getting an attribute on an HTML tag?

  16. 16

    How to dynamically change CSS style attribute of DIV tag?

  17. 17

    How to dynamically change CSS style attribute of DIV tag?

  18. 18

    Apply CSS style attribute dynamically in Angular JS

  19. 19

    Why can't I set a css attribute to my array. Coding for Hangman Javascript

  20. 20

    How can I move text to the left with CSS?

  21. 21

    How can I fix this css left alignment?

  22. 22

    How can I type hint a dynamically set class attribute in a metaclass?

  23. 23

    How to wait for a css attribute to change?

  24. 24

    How can I achieve float left at bottom and float right at top with css flexbox?

  25. 25

    How to apply @media for css attribute that are set via jquery

  26. 26

    How can I replace inline styles in css

  27. 27

    CSS margin left and right

  28. 28

    css - shadow on right and left

  29. 29

    css outline left and right

HotTag

Archive