My goal is to create a dropdown box that overlays the content of a div when an icon within it is clicked. However, currently, the dropdown box is pushing down the content of the div instead of overlaying it. I have tried adjusting my CSS by setting some elements to position:relative and others to position:absolute, but after multiple attempts, I still can't get it to work properly. Below is a simplified version of my code without the various position adjustments.
The relevant CSS code:
(all CSS code provided in original text)
The HTML code:
(all HTML code provided in original text)
The JS code:
$(document).ready(function() {
$("#ideas_box_top_iconBar_comment").click(function()
{
$("#comments_dropDown_box").toggle();
$("#comments_dropDown_box_point").toggle();
});
});
A live version can be accessed here: (click comment icon in first post)
I would greatly appreciate any assistance with this issue.