780

Rediscovering generated content

In this article I’ll discuss some possible uses of generated content. Generated content is a powerful feature of CSS. Before going on, I’d like to explain what generated content is not. Let’s take a look at the following picture. Figure… Continue Reading

5

How To Clear Floats Without Structural Markup

Clearing Floats The Old Fashioned Way When a float is contained within a container box that has a visible border or background, that float does not automatically force the container’s bottom edge down as the float is made taller. Instead… Continue Reading

28

Divitis: What it is and how to avoid it (Updated!)

When developing your website in HTML, you might be tempted to use the <div> tag to sovle problems. Things not lining up in every browser? Maybe another containing <div> would help. Don’t know how to select that particular element? Wrap… Continue Reading

26

Faux Columns

Vertical stretch One of the somewhat frustrating properties of CSS is the fact that elements only stretch vertically as far as they need to. Meaning, if a 200-pixel tall image is contained within a <div>, the <div> will only expand… Continue Reading