title: using inline css - a no-no or okay in certain situations?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4721997/inline-styles-vs-styles-in-css">Inline styles vs styles in CSS</a>  </p>
  </blockquote>
  
  
  
  <p>i guess i'm looking for some opinions on this. I am all for using css styles as classes in a separate .css file. But every once in a while, i run into a scenario where i need just some padding for a particular element or change the css class' width only in one particular situation. Is it okay to add inline styles in those scenarios? do people do this or always create classes for everything.</p>
  
  <p>My theory would be if its not something reusable or does not contain more than 2 styles, why create a class for it. Am I wrong in thinking that?</p>
  
  <p><strong>Summary of Answers</strong> (since there are many)</p>
  
  <p>It is better to avoid inline styles because</p>
  
  <p>1) style sheets provides more maintainability. </p>
  
  <p>2) better separation of html data and layout.</p>
  
  <p>3) re-usability of styles.</p>
  
  <p>4) probably provides better caching.</p>
  
  <p>Overall, css style sheet is the best practice.  </p>