Ajax call and CSS priority

Posted by Community Admin on 04-Aug-2018 09:49

Ajax call and CSS priority

All Replies

Posted by Community Admin on 22-May-2015 00:00

I've noticed that if I use an Ajax call on my page that it messes up my CSS.  I'm using an Ajax call to resize the radrotator to match the window size.  When I do this it seems that the resources.axd re-loads some CSS which then overwrites my margin CSS entries.  I can get around this by changing my layout.css to put !important next to the margin rules, but not sure this is the best way of dealing with this?

 

This thread is closed