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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -