I have designed a webpage with some tile-like divs that float to the left and are displayed based on user permissions. When the tiles are hovered over, suboptions appear for users to navigate to.
Among these tiles is one that I want to enlarge when hovered over, which I achieved by changing the CSS class of the tile using JavaScript.
However, my issue is that I want this larger tile to overlap the smaller tiles on the page. Currently, it displays under the other tiles instead of overlapping them.
Here is an excerpt of my code:
<!-- Code snippet goes here -->
In my JavaScript function, I have the following line of code to change the CSS class of the admin tile:
setTimeout(function(){document.getElementById('admin').className = 'largetile'; }, menuDelayTimeout);
How can I ensure that this large tile overlaps the other div tiles on the page rather than appearing underneath them?
Your assistance would be greatly appreciated.
Thank you, Mike