Polycéphale

I'm Duong Tam Kien or @taniki on the globoweb. I'm freelance information architect and scientist. I do data visualisation and other stuffs that pretend to be fun, serious, anthropological and wanabee-modernist.

I also collect pictures and links. Like a contemporary WalterBenjaminian hobby. If you are here and reading this, i supposed you are like that too.

more :

August 13, 2010 at 1:19am
Home
Reblogged from jacob

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 (:

Notes

  1. iodic reblogged this from jacob
  2. ebiansyah reblogged this from jacob
  3. assadqazi reblogged this from jacob
  4. jayrobinson said: I usually do this, though I only note the overall width I want, not the equation.
  5. taniki reblogged this from brocatus and added:
    And for all Textmate user : CTRL+SHIFT+C : calculate the selection (:
  6. brocatus reblogged this from jacob and added:
    Did you meet LESS yet? It’s awsome!
  7. janf reblogged this from jacob and added:
    Reblogging