Over ride Inline styles


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <style type="text/css">
  2. div[style] { background: yellow !important;}
  3.  
  4. <div style="background: red;"> The inline styles for this div should make it red.</div>

URL: http://m.css-tricks.com/override-inline-styles-with-css/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.