Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6318203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:36:49+00:00 2026-05-24T15:36:49+00:00

I want to make a CSS only speech bubble. So far, I have this…

  • 0

I want to make a CSS only speech bubble. So far, I have this…

Example

Bubble example

CSS

div {
    position: relative;
    background: #fff;
    padding: 10px;
    font-size: 12px;
    text-align: center;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

div:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    bottom: -60px;
    margin-left: -15px;
    border-width: 30px 20px 30px 20px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

jsFiddle.

…which is almost exactly what I want. However, I want a light border around the whole thing.

Obviously, on the main portion, that is simple as adding border: 1px solid #333 to the div.

However, as the tail of the bubble is a border hack, I can’t user a border with it.

I tried setting a box shadow of 0 0 1px #333 but browsers apply the border to the rectangular shape of the element (which I guess is what they should do).

jsFiddle.

My next thoughts were finding a Unicode character that looks like a bubble tail and absolutely positioning it there, with text-shadow for the border and using z-index of the main bubble to hide the top shadow of the text.

What Unicode character would be suitable for this? Should I do something different? Do I need to resort to an image?

I only have to support Mobile Safari. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:36:50+00:00Added an answer on May 24, 2026 at 3:36 pm
    <div>Hello Stack Overflow!<span></span></div>
    
    div span:after {
        content: "";
        display: block;
        width: 0;
        height: 0;
        position: absolute;
        left: 50%;
        bottom: -51px;
        margin-left: -15px;
        border-width: 20px 20px 30px 20px;
        border-style: solid;
        border-color: #000 transparent transparent transparent;
    }
    

    http://jsfiddle.net/QYH5a/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok so i want to make my border css only applicable to ie8 or
So I want to create a tab system using only CSS. what I have
I have two paragraphs wrapped in a div. I want to make the first
I have a css class pause . This is applied in various pages. Only
I have a div id overlay that I want to make visible when the
I am trying to make a pure css div with arrow ( like speech
Are there any good tools to make css sprites? IDEALLY I'd want to give
I have style sheet with a class name changebackgroundcolor i want make change in
How to give cross browser transparency to background only? I want to give transparency
I want to create an element using DIV and CSS like below: Create By:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.