Included below is my HTML code:
<div id="background_div">
<img id="background_img" src="images/background.jpg" alt="dont matter">
<i class="material-icons">perm_identity</i>
<div id="dropdown">
<ul id="dropdown2" class="dropdown-content">
<li><a href="#!">one<span class="badge">1</span></a></li>
<li><a href="#!">two<span class="new badge">1</span></a></li>
<li><a href="#!">three</a></li>
</ul>
<a class="btn dropdown-button" href="#!" data-activates="dropdown2">Select Service<i class="mdi-navigation-arrow-drop-down right"></i></a>
</div>
</div>
I reorganized the structure by placing the div id "dropdown" within the div id "background_div" (as a child/parent relationship) in order to possibly use some relative CSS functions to align them. Originally, they were set as siblings... My main goal is to center the dropdown div perfectly in the middle of the background_div. It would be great if this can be achieved responsively.
If anyone could provide me with some CSS code to help accomplish this, I would greatly appreciate it!
Many thanks in advance!