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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:48:38+00:00 2026-05-30T16:48:38+00:00

I have a speech bubble. I build it using a div for the content.

  • 0

I have a “speech bubble”. I build it using a div for the content. In that div I put an img that I used for the tail. Those 2 are hidden when the page loads. When a certain button is clicked, those 2 are supposed to be displayed. Nevertheless only the content(#msg-loc) is displayed. The img remains hidden. And I don’t get it. The strange thing is that if I remove the hidden property by default, everything is dispalyed properly. Does the display property not work with img? Hope someone can help. Thank you in advance for your replies. Cheers. Marc.

My HTML:

<div id="msg-loc" class="hidden">
    <img src="img/triangle.png" class="hidden triangle"/>
</div>

My JS:

$('#msg-loc').html('the value is incorrect').removeClass('hidden');
$('.triangle').removeClass('hidden');

My CSS:

#msg-loc{
    width:300px;
    text-align:center;
    margin-top:8px;
    background-color:pink;}

.triangle{
    left:65px;
    top:-13px;
    position:relative;}

.hidden{
    display:none;}
  • 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-30T16:48:39+00:00Added an answer on May 30, 2026 at 4:48 pm

    You are replacing the image with ‘the value is incorrect’.

    Based on comments… updated solution:
    http://jsfiddle.net/P7yhz/3/

    HTML

       <div id="msg-loc" class="hidden">
        <div class="triangle"></div>
        <div class="message">The value is incorrect</div>
    </div>
    <a href="#">Reveal</a>
    

    CSS

    #msg-loc{
        width:300px;
        text-align:center;
        margin-top:8px;
    }
    
    .triangle {
        background:url('http://www.mathsisfun.com/geometry/images/regular-triangle-sm.gif') no-repeat bottom center;
        height: 40px;
    }
    .message {background:pink;}
    
    .hidden{
        display:none;}
    

    JS

    $(document).ready(function() {
        $('a').click(function() {
            $('#msg-loc').toggleClass('hidden');
        });
    

    });

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

Sidebar

Related Questions

I have a speech bubble called philosophy bubble which is just a div styled
I have a div called #login_wrap which looks a bit like an speech bubble.
I have this code that creates a little speech bubble. I am going to
I have an Android application that makes use of TTS (Text to speech) API.
I have an app that uses text to speech to inform the user every
I want to make a CSS only speech bubble. So far, I have this...
I have multiple divs in my page as: <div imageId='image5' name='5' class='speechBubble'> <div imageId='image5'
I have managed to use SAPI Text-To-Speech in Delphi/Lazarus by using the following code:
I have an Android application that uses speech recognition in an Activity. The GUI
I have been on a rough ride trying to do something using the Speech

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.