thepremit.com Blog

// ideologies of a starving artist -> programming is still an art

jQuery/CSS Speech Bubbles

Join 2 conversations

Speech bubble

I was browsing through Web Designer Issue 165 when I came across the article, “Style speech bubble boxes with CSS”. Remembering some projects that required rounded corners and speech bubbles, the curiosity for an unequivocal solution pressed me to try the methods suggested.

Using Will Mayo’s CSS Speech Bubbles, I made the following modifications:

To display a speech bubble, use this HTML:

<div class="speech_bubble">
	<div class="bubble">
		Lorem ipsum quot numquam quaerendum cum et, et vix eruditi suscipiantur.
	</div>
	<p>
		<strong>Speech Bubble</strong> using <a href="http://blue-anvil.com/download/?did=24">jQuery Curvy Corners</a>
	</p>
</div>

Do note that the CSS can be modified as per desired but if the tip image is out of alignment, use line-height for adjustment.

View Demo | Download Demo

Tested and worked in Windows environment for:

  • Internet Explorer 6, 7, 8
  • Firefox 3
  • Chrome 4
  • Safari 4

Written by premit

May 16th, 2010

2 Responses to 'jQuery/CSS Speech Bubbles'

Subscribe to comments with RSS or TrackBack to 'jQuery/CSS Speech Bubbles'.

  1. I have put the code and CSS in my asp.net site and it’s working as per the expectation, but the problem is occuring on post back, that is whenever page is post back I lost the rounded corner as well as arrow.

    Please help me to rectify it.
    Thanks

    Rahul

    17 May 10 at 21:35

  2. Rahul,

    I tried it with ASP.NET postback and it’s working fine. Are there any codes you can provide to better understand the problem?

    ;premit

    premit

    17 May 10 at 21:56

Leave a Reply

I welcome all comments but no flaming please. :)