How can I ensure a div expands over another element when hovering the mouse?

I have a development div in the footer with a hover effect that expands it. However, it is currently growing underneath the top element on the site. I want it to expand on top or push the element above.

Website:

I've tried using position, float, and other techniques but can't seem to get it right. Can someone please help me?

.developer {
  z-index: 99999 !important;
  background: rgba(55, 55, 55, 1);
  background: -webkit-linear-gradient(45deg, rgba(39, 39, 39, 1) 0%, rgba(39, 39, 39, 1) 20%, rgba(46, 46, 46, 1) 30%, rgba(39, 39, 39, 1) 40%, rgba(39, 39, 39, 1) 60%, rgba(46, 46, 46, 1) 70%, rgba(39, 39, 39, 1) 80%, rgba(39, 39, 39, 1) 100%);
  height: 25px;
  overflow: hidden;
  transition: all 1s ease-in-out;
}

.byfoxdev {
  font-family: "montserrat" !important;
  padding-top: 3px;
  padding-bottom: 2px;
  text-align: center;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0;
  color: white;
}

.developer:hover .foxdevlogo {
  background-image: url("https://foxdev.com.br/img/foxdev_footer_110x61.png");
  background-repeat: no-repeat, repeat;
  width: 110px;
  height: 61px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.developer:hover {
  height: 85px;
  margin-top: -60px;
}

.developer:hover .byfoxdev {
  display: visible;
}

.foxdevlogo {
  background-image: url("https://foxdev.com.br/img/foxdev_footer_110x38.png");
  background-repeat: no-repeat, repeat;
  width: 110px;
  height: 25px;
  margin: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: all 1s ease-in-out;
}

.fa-heart {
  color: #D9534F;
}

.fa-mug-hot {
  color: #F6E8D6;
}
<div class="developer">
  <a href="https://foxdev.com.br">
    <div class="foxdevlogo">
    </div>
  </a>
  <div class="byfoxdev">Developed with <i class="fas fa-heart"></i> and <i class="fas fa-mug-hot"></i> by foxDev</div>
</div>

Answer №1

Kindly delete the line containing overflow: hidden; from this section

.vc_row[data-vc-full-width] {
    -webkit-transition: opacity .5s ease;
    -o-transition: opacity .5s ease;
    transition: opacity .5s ease;
    overflow: hidden; /* <= please remove this particular line */
}

Answer №2

.coding-genius {
  z-index: 99999 !important;
  background: rgba(55, 55, 55, 1);
  background: -webkit-linear-gradient(45deg, rgba(39, 39, 39, 1) 0%, rgba(39, 39, 39, 1) 20%, rgba(46, 46, 46, 1) 30%, rgba(39, 39, 39, 1) 40%, rgba(39, 39, 39, 1) 60%, rgba(46, 46, 46, 1) 70%, rgba(39, 39, 39, 1) 80%, rgba(39, 39, 39, 1) 100%);
  height: 25px;
  overflow: hidden;
  transition: all 1s ease-in-out;
}

.by-coding-experts {
  font-family: "montserrat" !important;
  padding-top: 3px;
  padding-bottom: 2px;
  text-align: center;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 0;
  color: white;
}

.coding-genius:hover .logo-img {
  background-image: url("https://codingexperts.com/logo.png");
  background-repeat: no-repeat, repeat;
  width: 110px;
  height: 61px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.coding-genius:hover {
  height: 85px;
}

.coding-genius:hover .by-coding-experts {
  visibility: visible;
}

.logo-img {
  background-image: url("https://codingexperts.com/logo.png");
  background-repeat: no-repeat, repeat;
  width: 110px;
  height: 25px;
  margin: auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: all 1s ease-in-out;
}

.fa-love {
  color: #D9534F;
}

.fa-coffee-cup {
  color: #F6E8D6;
}
<div class="coding-genius">
  <a href="https://codingexperts.com">
    <div class="logo-img">
    </div>
  </a>
  <div class="by-coding-experts">Created with <i class="fas fa-love"></i> and <i class="fas fa-coffee-cup"></i> by Coding Experts</div>
</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

Creating dynamic PDFs with automatically adjusting heights in DOMPDF Learn how to make

It seems like this question may not have a straightforward answer, but let's give it a shot. My goal is to collect various information from users on my website and display it in an HTML template file that will later be converted into a PDF. With user ...

The input focus placeholder at the top is not functioning properly when applied to an input field that

I recently designed an input box similar to this: https://i.stack.imgur.com/lkSnh.png However, I encountered an issue when trying to make the input box readonly. Here is a snippet of my code: .myinput input:focus { outline: none; } ... <div clas ...

Incorporating Dynamic Javascript: A Step-by-Step Guide

I came across a select object that looks like this: <select id="mySelect" onchange = "start()" > <option>Apple</option> <option>Pear</option> <option>Banana</option> <option>Orange</option> < ...

Revise HTML form using variable obtained from prior form

I thought this would be a simple task, but for some reason I can't seem to figure it out and my online searches have been unfruitful. So here's the situation: My website consists of three pages. On the first page, the user fills out a form which ...

What is the best way to ensure that multiple bootstrap buttons in a row have the same width?

Could you help me figure out how to make the <div id="full"> element take up the full width of its parent container, while also ensuring that the 3 buttons inside share this width and have equal sizes with gaps between them? https://i.stac ...

Accelerate Image Preloading速

I am currently in the process of creating a website that features divs with background images. Although I am new to JavaScript, I am eager to learn more about it. My main goal is to preload these images so that visitors do not encounter any delays or bla ...

Display the contents of a <div> tag from one HTML file onto another HTML file

Recently I embarked on learning HTML and came across a peculiar doubt. My goal is to create a section div on the first page that changes dynamically based on the menu item clicked, rather than redirecting to another HTML page. I've experimented with s ...

An issue with Destination-Out Composition in HTML5 Canvas

While working on a canvas, I have encountered an issue with deleting a portion of a curve I have drawn. Specifically, I need to remove the last 25% of the curve after it is complete and keep only the first 75%. However, when attempting to delete the lines ...

Troubleshooting problem with CSS scaling on smartphones

I'm attempting to create a website (the first one I've ever designed) dedicated to my girlfriend's cat. However, when viewed on a mobile device, it doesn't look good. I've made an effort to adjust the meta viewport tag, but it does ...

There appears to be an unusual white line running along the right side of the page

While working on a document, I noticed an odd white line appearing in the right margin of the page. Despite setting the width to 100% or using margins to center the content, this line persists and I can't figure out why. I've read suggestions on ...

Unable to navigate through images on Bootstrap Carousel using previous and next buttons

Despite following tutorials and examining the HTML code on bootstrap, I'm facing issues while trying to create a carousel. I believed that everything was done correctly, but when I click on the next button, nothing happens. <!DOCTYPE html> < ...

Including Previous & Next Buttons in Product Categories

I have set up the display of category products on the home page using the block below: {{block type="catalog/product_list" template="catalog/product/home_short.phtml" category_id="5" column_count="6"}}. I now want to include previous and next buttons to ...

using jQuery to disable textarea input

I have this HTML code and I am using jQuery: <div><textarea style="height: 150px; width: 250px" name="myName" id="myId" class="text ui-widget-content ui-corner-all" > </textarea></div> Currently, I validate this field after the su ...

Switch between visibility of objects with toggle button

I have set a background image on the body, and positioned a large box, footer, navigation bar, and header above it. In order to add functionality to slide these elements up and down, I've created two buttons with classes 'slideUp' and &apos ...

While v-carousel adjusts to different screen sizes, the images it displays do not adapt to

Whenever I implement v-carousel, everything seems to be working well, but there is an issue on mobile. Despite the carousel itself being responsive, the images inside do not resize properly, resulting in only the center portion of each image being displaye ...

Unable to specify the width of my website using full-width in Bootstrap

Using the bootstrap grid system has caused a slight issue for me. Whenever I scroll to the right side of the window, there is a white space that appears: https://i.sstatic.net/YHj92.png I have set the body width as 100vw; Is there a way to eliminate this ...

Creating a dynamic slideshow with automated arrow navigation is simpler than you may think

I have successfully tested the slideshow and it is functioning perfectly without any issues. I would like to have a dual slideshow setup (slideshow 1 and slideshow 2) with next and previous buttons, but I am interested in adding an automatic sliding featur ...

Highlight the parent item when the child item is being hovered over

I am working on a menu that has 2 submenus. I want to use jQuery to highlight the item when it is hovered over. However, I am struggling with how to also highlight the parent item when the cursor is on the child item. The class I am using for highlighting ...

The mysterious workings of the parseInt() function

As I begin my journey to self-teach JavaScript using HeadFirst JavaScript, I've encountered a minor obstacle. The chapter I'm currently studying delves into handling data input in forms. The issue arises when I attempt to utilize the updateOrder( ...

Poor mapping on Google Maps API

I've been trying to embed a Google Maps on my website, but for some reason, it keeps stretching and showing grey sections with rounded borders. Here's the code I'm using: <div class="p-5 col-6 d-flex flex-column justify-content-between"& ...