Create Speech buble with pure CSS3

Speech bubbles are a popular effect but many tutorials rely on presentational HTML or JavaScript. Nicolas Gallagher has writen tutorial that contains various forms of speech bubble effect created with CSS2.1 and enhanced with CSS3. No images, no JavaScript and it can be applied to your existing semantic HTML.

With HTML as simple as <div>Content</div> or <p>Content</p> you can produce speech bubble effects. The key is to use the :before and/or :after pseudo-elements to produce basic shapes. By applying CSS3 properties such as border-radius and transform you can produce more complex shapes and orientations.

Demo: http://nicolasgallagher.com/progressive-enhancement-pure-css-speech-bubbles/

Incoming search terms for the article:

Related Posts

CSS3 and HTML5 Musical Dropdown Menu

Creating Slopy Elements with CSS3

On/Off Flipswitch Generator

How to Create CSS3 Optical Illusions

1 Comment

  1. Atul Kash

    03.22.2010

    Good Job! I love the bubbles will definitely be using it in my future projects. Thanks