background preloader

First

Facebook Twitter

Line-height. Summary On block level elements, the line-height CSS property specifies the minimal height of line boxes within the element.

line-height

On non-replaced inline elements, line-height specifies the height that is used in the calculation of the line box height. <length> The <length> CSS data type denotes distance measurements.

<length>

It is a <number> immediately followed by a length unit (px, em, pc, in, mm, …). Like for any CSS dimension, there is no space between the unit literal and the number. CSS Float Theory: Things You Should Know. The CSS Box Model. At the risk of over-repeating myself: every element in web design is a rectangular box.

The CSS Box Model

This was my ah-ha moment that helped me really start to understand CSS-based web design and accomplish the layouts I wanted to accomplish. We've talked about the positioning of these boxes a bit, and about their behavior. What we haven't talked about much is the box itself. How is the size of the box calculated exactly? Dev.Opera — New Structural Elements in HTML5. Introduction HTML5 brings two new things to the table: new APIs that add essential new features to the open standards web development model, and new structural elements that define specific web page features with much more accurate semantics than were available in HTML 4.

Dev.Opera — New Structural Elements in HTML5

You can find articles covering many of the new APIs by looking for Dev.Opera articles marked with the HTML5 tag. This article, on the other hand, focuses on the latter — we will briefly look at how the new semantic elements were chosen, what the main new features are and how they are used, how headings work in HTML5, and browser support for these new elements, including how you can support them in older browsers. The contents are as follows: Introducing HTML5 structural elements.