w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
display inline-block in css menu

You can make it with #cssmenu li {display: inline block;} and #cssmenu li a {padding: 0 16px;} but your html is wrong. Check your ul's and li's again. You need:

<div id="cssmenu">
    <ul>
        <li class="has-sub">
            <a></a>
            ...
        </li>
        <li class="has-sub">
            <a></a>
            ...
        </li>
        <li class="has-sub">
            <a></a>
            ...
        </li>
    </ul>
</div>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.