CSS Box Model Hack


 / Published in: CSS
 

classical box model hack, by Tantek Çelik

http://www.tantek.com/CSS/Examples/boxmodelhack.html

  1. div.content {
  2. width:400px;
  3. voice-family: "\"}\"";
  4. voice-family:inherit;
  5. width:300px;
  6. }
  7.  
  8. html>body .content {
  9. width:300px;
  10. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: kristapsancans on February 18, 2011

even easier:

width:300px !important; width:400px

Posted By: diolt on July 20, 2011

O yeah that's nice one, i was thinking to add same box into my website http://www.diolt.com suggestion page.

You need to login to post a comment.