html - Background div menu issue -


i want make menu colored background. use simple "background" or "background-color" on div containing of menu don't see color. know it's dumb i'm stuck..

here html :

 <header class="menu-top">     <div class="menu">         <ul>             <li><a>home</a></li>             <li><a>portfolio</a></li>             <li><a>contact</a></li>         </ul>     </div> </header> 

here jsfiddle : https://jsfiddle.net/szf1xksv/

an alternative use:

.menu > ul > li {   display: inline-block; } 

this preserve height of list items.


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -