Learning To Use The :before And :after Pseudo-Elements In CSS

Jul 14, 2011   //   by   //   Web Development  //  No Comments

css
“If you’ve been keeping tabs on various Web design blogs, you’ve probably noticed that the :before and :after pseudo-elements have been getting quite a bit of attention in the front-end development scene and for good reason. In particular, the experiments of one blogger namely, London-based developer Nicolas Gallagher have given pseudo-elements quite a bit of exposure of late.

To complement this exposure (and take advantage of a growing trend), I’ve put together what I hope is a fairly comprehensive run-down of pseudo-elements. This article is aimed primarily at those of you who have seen some of the cool things done with pseudo-elements but want to know what this CSS technique is all about before trying it yourself.

Although the CSS specification contains other pseudo-elements, I’ll focus on :before and :after. So, for brevity, I’ll say ‘pseudo-elements’ to refer generally to these particular two.”

[Go to full article at Smashing Magazine]

Leave a comment

You must be logged in to post a comment.

Contact Info

ProLogix Technologies™
16903 Hampton Trace Rd.
Huntersville, NC 28078
704-488-6033 (p)

Contact Sales
Contact Support

Advertising