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 7713049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:46:24+00:00 2026-06-01T01:46:24+00:00

I’ve got this image: I want to code this image (just the bar, not

  • 0

I’ve got this image: image

I want to code this image (just the bar, not the background – background can change) using html and css3. It has to be scalable in height and width. What’s the best technique to do that? Thanks.

  • 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-06-01T01:46:26+00:00Added an answer on June 1, 2026 at 1:46 am

    OK you can try this (tested in Firefox 11 only)…

    HTML

    <div class="bubble">
        <div class="content">
            Some content can go inside this bubble...
        </div>
        <div class="arrow"><div class="arrow-shadow"></div></div>
    </div>
    

    CSS

        .bubble
    {
        background:#D0D0D0;
        background-image: -ms-linear-gradient(top, #BBB 0%, #EEE 100%);
        background-image: -moz-linear-gradient(top, #BBB 0%, #EEE 100%);
        background-image: -o-linear-gradient(top, #BBB 0%, #EEE 100%);
        background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #BBB), color-stop(1, #EEE));
        background-image: -webkit-linear-gradient(top, #BBB 0%, #EEE 100%);
        background-image: linear-gradient(top, #BBB 0%, #EEE 100%);
        border-radius:10px;
        border-top:2px solid #EEE;
        border-bottom:2px solid #AAA;
        position:relative;
        width:380px;
        height:100px;
    }
    .bubble .content
    {
        padding:10px;
    }
    
    /* Arrow */
    .bubble .arrow {
        position:absolute;
        top:50%;
        left:100%;
        margin-top:-12px;
    }
    .bubble .arrow:after,
    .arrow .arrow-shadow
    {
        border:10px solid Transparent;
        border-color:rgba(255,255,255,0) rgba(255,255,255,0) rgba(255,255,255,0) rgba(255,255,255,0);
        content:' ';     
        height:0;
        position:absolute;
        width:0;
    }
    .bubble .arrow:after
    {
        border-left-color:#D3D3D3;
    }
    .arrow .arrow-shadow
    {
        height:3px;
        border-left-color:#AAA;
    }
    

    It’s a bit of a hack in my opinion, but it seems to get fairly close to what you want. The only things that may be an issue are:

    1. Backwards compatibility. Older versions of IE might choke so it’d be worth testing it and hacking IE compatibility as required.
    2. If the box becomes too big, the arrow might look a different colour to the box. I can’t figure out a way around this, so you might have better results putting the arrow in a static location.

    You can find a JSFiddle here: http://jsfiddle.net/eWj6q/13/

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

Sidebar

Related Questions

I have this code to decode numeric html entities to the UTF8 equivalent character.
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
i got an object with contents of html markup in it, for example: string
Does anyone know how can I replace this 2 symbol below from the string
I have thousands of HTML files to process using Groovy/Java and I need to
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I have just tried to save a simple *.rtf file with some websites and

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.