1. CSS Tip

    brocatus:

    jacob:

    This has come in pretty handy lately:

    width: 784px; /* 800 - (7 * 2) - (1 * 2) */

    Whenever you subtract padding or border from an elements dimension, note the equation you did to arrive at the new number.

    Super easy to recalculate it if any of the variables change. Bonus points for writing the comment first and just pasting it into Soulvr or Google.

    Did you meet LESS yet? It’s awsome!

    And for all Textmate user : CTRL+SHIFT+C : calculate the selection (:

     
  1. viiv likes this
  2. iodic reblogged this from jacob
  3. waxandmilk likes this
  4. headunderwater likes this
  5. charliepark likes this
  6. scudmissile likes this
  7. dribbbler likes this
  8. joshuatuscan likes this
  9. phalkunz likes this
  10. edouardbriere likes this
  11. andyinabox likes this
  12. krisutus likes this
  13. embody likes this
  14. lullkatz likes this
  15. ebiansyah reblogged this from jacob
  16. stevenla likes this
  17. assadqazi reblogged this from jacob
  18. eldodo likes this
  19. jayrobinson said: I usually do this, though I only note the overall width I want, not the equation.
  20. ridingwithstrangers likes this
  21. stephenlovell likes this
  22. jacob likes this
  23. ibadeeb likes this
  24. taniki reblogged this from brocatus and added:
    And for all Textmate user : CTRL+SHIFT+C : calculate the selection (:
  25. roomthily likes this
  26. brocatus reblogged this from jacob and added:
    Did you meet LESS yet? It’s awsome!
  27. kevindavidcrowe likes this
  28. kemps likes this
  29. outloud likes this
  30. collapsingcontainers likes this
  31. r2witco likes this
  32. dustinliamc likes this
  33. hoitytoityangel likes this
  34. skeletontendons likes this
  35. alteregodiego likes this
  36. tylerhwillis likes this
  37. patrickbeser likes this
  38. bugsyrafael likes this
  39. benjamindauer likes this
  40. performcpr likes this
  41. sujay likes this
  42. thresca likes this
  43. psql likes this
  44. josh--a reblogged this from jacob and added:
    Reblogging
  45. couch likes this
  46. bluntreaction likes this
  47. thommy likes this
  48. nikography likes this
  49. yyoyoma likes this
  50. pettifogging likes this