March 2013 - Broken Links Archive

Removing the whitespace from inline block elements

There are two com­mon meth­ods of build­ing a hor­i­zon­tal com­po­nent, such as nav­i­ga­tion: using floats; or set­ting the display prop­er­ty to inline-block. This lat­ter approach makes child ele­ments run in to the same hor­i­zon­tal line in the doc­u­ment flow but pre­serves their block behav­iour, and is pret­ty effec­tive because you don’t have to wor­ry about clear­ing floats as you would in the alter­na­tive tech­nique. It does, how­ev­er, have a drawback.

Read the full article


Aside

I’ve updat­ed my Speak­ing page to include more con­fer­ences, more videos, and a lit­tle on my speak­ing require­ments and pref­er­ences. I’m plan­ning to cut down on the num­ber of talks I give in 2014 (twelve is too many), but am always open to inter­est­ing offers and oppor­tu­ni­ties, so please get in touch if you’re organ­is­ing an event.

[#] 1 Comment . More Asides.