de en es fr nl pl pt sv

css3

No-nonsense vertical centering

Larry Davis

.navbar { margin: 1rem; } .navbar a { padding: 0 1rem; background: gray; color: black; text-decoration: none; text-shadow: none; } .navbar a:not(:last-child) { border-right: 0.0625rem solid rgb(0,0,0); }...

Scaleable interfaces with rem units

Larry Davis

What are rem units?According to W3 candidate reccomendation, one root elastic measurement (rem) unit is equal to the font-size of the <html> element. Hello remLet's say you've defined the font-size of the <html> element as 16 pixels, and you want a 48 pixel tall <header>. Basic...