My issue involves a div with inline style "left: Random Number". I have attempted to use various CSS change functions, but none have been successful. The problem lies in the fact that the property of left is random, and I am trying to change it to right.
<div class="portfolio" style="left:0">Content</div>
<div class="portfolio" style="left:230">Content</div>
<div class="portfolio" style="left:446">Content</div>
<div class="portfolio" style="left:841">Content</div>
I want jQuery to change all instances of left to right without changing the property itself.
I have tried the following solutions, but they did not work:
$(".portfolio").css({"left": "", "right": ""});
I also attempted this:
$(".portfolio").css({"left", "right"});
Does anyone have a solution for this issue?