For my latest project, I decided to include a menu in the index.html view:
<table>
<tr class="logo">
<td><img src="#" alt="logo"/></td>
</tr>
<tr class="menu">
<td><a href="#">blablabla</a></td>
</tr>
<tr class="menu">
<td><a href="#">blablabla</a></td>
</tr>
<tr class="menu">
<td><a href="#">blablabla</a></td>
</tr>
<tr class="menu">
<td><a href="#">blablabla</a></td>
</tr>
<tr class="menu">
<td><a href="#">blablabla</a></td>
</tr>
</table>
This particular menu is positioned within a horizontal navbar like so:
<header>
<ul>
<li>...</li>
<li><a href="#">blablabla</a></li>
<li><a href="#">blablabla</a></li>
<li><a href="#">blablabla</a></li>
</ul>
</header>
I am looking to have this menu float over the navbar similar to the image provided below:
https://i.sstatic.net/E9977.jpg
If anyone has a solution on how to achieve this effect, please let me know!
Here is the CSS style currently applied to the table:
table {
z-index: 1;
}
table > tr.logo {
width: 280px;
height: 480px;
background-color: #A9A9A9;
}
table > tr.menu {
background-color: #DCDCDC;
}
table > tr.menu:hover {
background-color: #C0C0C0;
}
table > tr.menu > a {
text-decoration-color: #FAEBD7;
font-family: 'Special Elite', cursive;
}
table > tr.menu:hover > a {
text-decoration-color: #FFFAF0;
}
You can view the code on jsfiddle here: https://jsfiddle.net/klebermo/09br9e5p/
UPDATE
I attempted to update the code to eliminate the use of tables and achieved this result: https://jsfiddle.net/klebermo/09br9e5p/2/