Creating a css rule overrides jQuery.css changes

I have two stylesheets: a media="print"one and media="screen". I also have jQuery code that executes when the window is resized by changing the margin-leftdiv.

Currently this div is to the right when the user is typing. I want to margin-leftalways be zero when the user types.

How could I do this? Thanks in advance!

+3
source share
2 answers

Give it idand set it to#your-id { margin-left: whatever !important; }

+7
source

Using !importantCSS in your stylesheet is one option.

inline style, removeAttr('style').

+1

All Articles