Trang

Thứ Tư, 15 tháng 5, 2013

AUTOMATIC FIGURE NUMBERING WITH CSS COUNTERS

When writing articles, blog posts, tutorials, magazine entries or anything else, you will often want to include some images, charts, photographs, or even videos and code snippets to illustrate your content.

That being said, you will most likely want to attach some kind of caption to these elements, and perhaps number them so your readers can keep track of your thoughts.
And that’s exactly what we are going to do in today’s tutorial: combining the usage of the
element with CSS counters to make your inserted elements (especially images) sexy as hell!


DEMO

SOURCE

Không có nhận xét nào: