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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:45:52+00:00 2026-05-30T05:45:52+00:00

if you notice, above are comments in stackoverflow, the above image shows no flag

  • 0

comment without flag
enter image description here

if you notice, above are comments in stackoverflow, the above image shows no flag while below image shows the flag shows when the mouse is hovering the comment. The flag is hide/show without resizing the table layout. But I have tried my own way by using below code but it still resizing.

<script>
$('document').ready(function()
{
    $('#hover').hover(function()
    {
        $('#flag').show();
    });
});
<table>
<tr>
    <td>
        <div id="hover">

            <div id="flag" style="display:none">
                <img src="flag.png"/>
            </div>
            
            <div>
                Hover me
            </div>
        </div>
    </td>
</tr>

Help me out here how to resolve this matter.

  • 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-30T05:45:53+00:00Added an answer on May 30, 2026 at 5:45 am

    In your CSS, you need to set an explicit width of the #flag element, then toggle the display of the img itself.

    ​#flag {
        width: 16px;
        height: 16px;
        float: left;
    }
    
    #flag > img {
        display: none;
    }
    

    Then your jQuery code gets adapted:

    $(document).ready(function()
    {
        $('#hover').mouseenter(function()
        {
            $('#flag > img').show();
        }).mouseleave(function()
        {
            $('#flag > img').hide();
        });
    });
    

    See this jsFiddle for it in action.

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

Sidebar

Related Questions

Please check out http://rainsongmanchesters.net/news.htm and notice the black strip above the header image. Now
in above image you would notice that, doted rectangle indicating ComboBox is focused But
Notice how the default domain for stackoverflow is http://stackoverflow.com and if you try to
Notice how for every image that google indexes it has a small thumbnail .
Notice how StackOverflow displays some nice Status Bar message based on your activity? (That
I notice that StackOverflow has a views count for each question and that these
i am getting an error while querying this select statement. $comments = dbgetvar(SELECT SUM(CASE
Notice this app: How can I draw that sort of triangle above an existing
I notice that NetBeans is warning me about using Thread.sleep() in a while loop
Kindly go through this link and notice the solution given by "thepeer": https://stackoverflow.com/a/3494108 I

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.