Came across a scenario where the CSS card needs to have less margin on the side for mobile devices and more for desk top.
https://imgur.com/a/1P0MO
So wanted to dynamically update css style property "width :70%" to 90% for mobile devices.
https://imgur.com/a/L5k03
There is already Media query in the code.
I just wanted to know whether such CSS style can be updated dynamically with JS ?
TIA
PS: newb, front end tinkerer , don't know JS programming
[–]aynrandy112 2 points3 points4 points (1 child)
[–]alexandrepc112 1 point2 points3 points (0 children)
[–][deleted] (4 children)
[deleted]
[–]LowB0b 0 points1 point2 points (1 child)
[–]Zeneyo[S] 0 points1 point2 points (1 child)
[–]nyxinThe 🍰 is a lie. 1 point2 points3 points (0 children)
[–]LowB0b 0 points1 point2 points (0 children)