My navigation tab is currently only occupying half of the width that I need it to. I have tried various solutions found on this site and through Google, but none seem to work as expected. The black background of the navigation should fill up 100% of the width, but it doesn't. Any ideas?
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
nav ul {
background: #1e1d1d;
background: linear-gradient(top, #1e1d1d 0%, #bbbbbb 100%);
background: -moz-linear-gradient(top, #1e1d1d 0%, #bbbbbb 100%);
background: -webkit-linear-gradient(top, #1e1d1d 0%,#bbbbbb 100%);
box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
padding: 0 20px;
border-radius: 10px;
list-style: none;
position: relative;
display: inline-table;
}
nav ul:after {
content: ""; clear: both; display: block;
}
nav ul li {
float: left;
}
nav ul li:hover {
background: #f7f7f7;
background: linear-gradient(top, #f7f7f7 0%, #5f6975 40%);
background: -moz-linear-gradient(top, #f7f7f7 0%, #5f6975 40%);
background: -webkit-linear-gradient(top, #f7f7f7 0%,#5f6975 40%);
}
nav ul li:hover a {
color: #ff0000;
}
nav ul li a {
display: block; padding: 25px 40px;
color: #f7f7f7; text-decoration: none;
}
nav ul ul {
background: #f7f7f7; border-radius: 0px; padding: 0;
position: absolute; top: 100%;
}
nav ul ul li {
float: none;
position: relative;
}
nav ul ul li a {
padding: 15px 40px;
}
nav ul ul li a:hover {
background: #888484;
color: #ff0000;
}
nav ul ul ul {
position: absolute; left: 100%; top:0;
}
<nav>
<ul>
<li><a href="#">Basin & Sinks</a></li>
<li><a href="#">Showers</a>
<ul>
<li><a href="#">Shower Trays</a></li>
<li><a href="#">Shower Glass</a>
<ul>
<li><a href="#">Frosted</a></li>
<li><a href="#">Clear</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Bathroom Accessories</a>
<ul>
<li><a href="#">Plugs</a></li>
<li><a href="#">Toilet Paper</a></li>
</ul>
</li>
<li><a href="#">Toilets</a></li>
</ul>
</nav>
https://jsfiddle.net/1nzot5rq/1/
I've experimented with different links and tried using properties like width: 100% and max-width: 100%, but haven't been successful so far.