What is the easiest way to display a div box when hovering over it?

Spent the entire night on this and still no solution... I have a link that, when hovered over by a user, should display a box (div) underneath it. The box should overlay anything that is beneath it. Does anyone know how to achieve this in the simplest way using pure CSS?

Thanks, Yummi

    body {
    background-color: #6B6B6B;
    background: url(http://wizzfree.com/pix/bg.jpg) fixed;
    background-size: 100% 100%;
    background-repeat: no-repeat;  
    font-family: Arial;
    color: darkgrey;
    font-size: 14px;
    line-height: .3;
    letter-spacing: .5px;
    margin: 50px;
} 
    /*............... emojis ...............*/
    
    .emojis {
    position: absolute;
    padding: 25px 15px 10px 20px;
    border-radius: 20px 0px 20px 20px;
    background-color:rgba(0, 0, 0, .3);
}
    .emojis2>img{
    position:absolute;
    left:100%;
    top:0;
}
    .smiley {
    position: absolute;
    top: 25px;
    left: 430px;    
}
    /*... input message ...*/
    
    input[type=text] {
    width: 300px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 37px;
    font-family: Arial;
    color: white;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1.5px;
    background-color:rgba(0, 0, 0, .3);
}
<!-- emojis button -->
<div class="smiley" style="height:42px;display:flex;"><a href="emojis.html"><img src="http://wizzfree.com/pix/smiley2.png" width="40"></a>

<!-- input message -->
<form><input type="text" id="fname" name="fname" value="add emoji here" onFocus="this.value=''"></form>
</div>

<!-- emojis list -->
<div class="emojis" style="letter-spacing:3px;font-size:20px;">
<div class="emojis2"><img src="http://wizzfree.com/pix/bubble1.png" width="40" style="transform:scaleX(-1);"></div>
<br>πŸ˜ƒπŸ˜πŸ˜…πŸ€£πŸ˜‰πŸ˜ŠπŸ˜‡πŸ˜²πŸ˜³πŸ˜₯<p>
<br>πŸ₯°πŸ˜πŸ˜˜πŸ˜œπŸ€«πŸ€€πŸ˜ˆπŸ˜»πŸ™ˆπŸ™Š<p>
<br>πŸ’˜πŸ’•πŸ’žπŸ’ŒπŸ’‘ πŸ’πŸŒΉπŸŽ€πŸ¨πŸ­<p>
<br>πŸ’ƒπŸ„πŸ›€πŸ©πŸ‘‘πŸ¦πŸ¦„ πŸŽ πŸ§ΈπŸ’
</div>

Answer β„–1

Using a clever CSS technique, you can initially hide the div and then reveal it upon mouse-over. In your code snippet, the only link present is href="emojis.html". The following example demonstrates displaying the div with 'emojis.html' text on mouseover:

    body {
        background-color: #6B6B6B;
        background: url(http://wizzfree.com/pix/bg.jpg) fixed;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        font-family: Arial;
        color: darkgrey;
        font-size: 14px;
        line-height: .3;
        letter-spacing: .5px;
        margin: 50px;
    }

    /*............... emojis ...............*/

    .emojis {
        position: absolute;
        padding: 25px 15px 10px 20px;
        border-radius: 20px 0px 20px 20px;
        background-color: rgba(0, 0, 0, .3);
    }

    .emojis2>img {
        position: absolute;
        left: 100%;
        top: 0;
    }

    .smiley {
        position: absolute;
        top: 25px;
        left: 430px;
    }

    /*... input message ...*/

    input[type=text] {
        width: 300px;
        height: 50px;
        border: none;
        outline: none;
        padding-left: 37px;
        font-family: Arial;
        color: white;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 1.5px;
        background-color: rgba(0, 0, 0, .3);
    }
    
    a.special {
        position: relative;
    }

    a.special div.hidediv {
        background-color: white;
        display: none;
        position: absolute;
        z-index: 100;
        width: auto;
        padding: 10 10 10 10;
    }

    a.special:hover div.hidediv {
        display: block;
    }
<!-- emojis button -->
<div class="smiley" style="height:42px;display:flex;"><a href="emojis.html" class="special"><img
            src="http://wizzfree.com/pix/smiley2.png" width="40">
        <div class="hidediv">emojis.html</div>
    </a>


    <!-- input message -->
    <form><input type="text" id="fname" name="fname" value="add emoji here" onFocus="this.value=''"></form>
</div>

<!-- emojis list -->
<div class="emojis" style="letter-spacing:3px;font-size:20px;">
    <div class="emojis2"><img src="http://wizzfree.com/pix/bubble1.png" width="40" style="transform:scaleX(-1);"></div>
    <br>πŸ˜ƒπŸ˜πŸ˜…πŸ€£πŸ˜‰πŸ˜ŠπŸ˜‡πŸ˜²πŸ˜³πŸ˜₯<p>
        <br>πŸ₯°πŸ˜πŸ˜˜πŸ˜œπŸ€«πŸ€€πŸ˜ˆπŸ˜»πŸ™ˆπŸ™Š
    <p>
        <br>πŸ’˜πŸ’•πŸ’žπŸ’ŒπŸ’‘ πŸ’πŸŒΉπŸŽ€πŸ¨πŸ­
    <p>
        <br>πŸ’ƒπŸ„πŸ›€πŸ©πŸ‘‘πŸ¦πŸ¦„ πŸŽ πŸ§ΈπŸ’
</div>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Scrolling within ion-content is fluid when using a fixed div in Ionic

Following the recent GoogleChrome update, a div set to 'fixed' is now scrolling with the rest of the page. For a demonstration, you can visit the following link: LINK Specifically, the issue occurs with a 'fixed' div placed inside the ...

The website's content is displayed as a mobile-friendly menu

I've been working on creating a responsive menu using HTML and CSS, and everything is functioning well so far. However, I'm facing an issue with the mobile view of the menu. When the menu opens up, it obstructs the text below it, making it diffic ...

Troubleshooting the issue with padding in CSS not working when using window.print()

I need help creating a footer for my printed pages, but the footer is overlapping the content. I've tried adding padding-bottom to the @page CSS rule with the height of the footer, but it's not making a difference. Any suggestions on how to prop ...

Is it possible for iText 5 to convert PDF files into HTML format?

My latest project involved using iText 5 to generate a visually appealing report complete with tables and graphs. Now I'm curious to know if iText also has the capability to convert PDF files into HTML format. If it does, how would one go about doing ...

Is it possible to target the initial sibling of a parent element using a CSS selector?

Is there a way to target the <p> element using only the id "Standort" as a constant? Any suggestions on how to accomplish this? <section> <header> <h2 class="licht"><span id="Standort" class="-sitemap-select-item-select ...

What is the best way to retrieve the value of an element enclosed within a tag?

<div class="player__AAtt"> <div> <play-js data-account="1234567890" data-id="32667_32797"> </play-js> </div> </div> Is there a way to extract the values of data attr ...

Ways to showcase database content in ejs or html by utilizing Node.js, MongoDB, and Mongoose

I have successfully set up a Nodejs/Mongo/Mongoose database that can fetch and display data onto a page. However, I am encountering difficulty in displaying the fetched items in HTML, specifically in a table format. Below is the code for creating entries ...

How can I verify the number of completed form fields?

I seem to be facing a minor issue: I have a webpage where users can input information into up to 10 fields. However, they are not required to fill out all 10 fields. Initially, the user is presented with only one field, and they have the option to add mor ...

Programme for Server Login

After creating my own server, I attempted to implement a login feature to restrict access to its files. Unfortunately, using Javascript for this task proved to be insecure as usernames and passwords could easily be viewed in the source code: <form name ...

"Dynamically design a responsive mobile menu for Genesis Child Theme in Wordpress with full height

I'm in the process of designing a website for my sisters' band and I'm struggling to develop a mobile menu with full width and height in Wordpress (using PHP). The theme being used is Genesis. Can anyone provide assistance with this? Feel fr ...

Trying to retrieve a CSS property using jQuery

Having trouble retrieving the correct CSS value for a background using a spectrum.js color picker. No matter which color is chosen, rgba(0,0,0,0) is always selected. Strangely enough, when checking the background in the console, it shows up correctly in th ...

Tips for choosing every <div> within a specific class

I'm trying to create multiple boxes within a class, all with the same background color. I've written code for 6 boxes in the "color-board" class, but when I go to select them, only 1 box is displaying... Below is the code for the class and how I ...

I am encountering a problem where Simple HTML DOM consistently provides plaintext instead of the expected HTML outertext when used in

I've been utilizing the Simple HTML DOM for web scraping. However, when attempting to retrieve the html of a td element, it only returns plaintext instead. I've experimented with both outertext and innertext functions, but haven't had any su ...

Twig: A guide to showcasing HTML content within block titles

Within my Symfony2 project, I am utilizing various twig templates. One of these templates contains a block labeled title. {% block title %}{{ announcement.title }}{% endblock %} The issue arises when the variable {{ announcement.title }} contains HTML ta ...

Transforming a Bootstrap 4 HTML project into Angular 9

After stumbling upon a beautiful HTML template that caught my eye, I realized it was built using Bootstrap. Luckily, I came across tutorials on how to convert such templates into Angular 6 projects, making the process seem quite straightforward (like this ...

What could be causing the search function of the datatable to be hidden?

I am experiencing some difficulties with the code I have. My goal is to incorporate search functionality and pagination into my table. Unfortunately, it does not seem to be working as expected. Below is a snippet of the script located in the header section ...

Text located incorrectly beside image within container box

Below is the HTML code that defines a box containing title text and an image. <div id="about"> <div id="title"> <h3><b>About</b></h3></div> <div id="text"><p>Text</p></div> <div id="img ...

The Google Maps feature is not appearing on the webpage as expected

I'm currently working on a website that features a footer with a Google Map. The homepage displays this footer without any issues: However, in other pages, I've implemented the footer by calling it from an external file using jQuery as shown bel ...

What methods can be used to strategically incorporate gray into both the left and right sides of a page design?

I'm currently working on an asp.net MVC layout page and I'm trying to create a layout where the left side and right side are gray. However, I'm not sure how to achieve this using HTML, CSS, or Bootstrap. I specifically need to know how to ...

Can CSS3 be utilized to craft this specific shape?

Can CSS3 be used to create the shape I need? I came across this website http://css-tricks.com/examples/ShapesOfCSS/, but I am unsure if any of the shapes on that page can be customized to match the specific shape I have in mind. Thank you! ...