Quantcast
Viewing all articles
Browse latest Browse all 15

CSS: Weird inline-block behavior

In CSS, inline-block is an odd animal — neither inline, nor block. Further, it comes with its own set of rendering rules that can sometimes lead to unexpected results. Take the following example: http://jsfiddle.net/aSzaE/ We have three nearly identical rows. Each consists of two inline-block divs sitting next to each other. Both have fixed widths […]

Viewing all articles
Browse latest Browse all 15

Trending Articles