csscss-selectorswhmcswhmcs-invoice-template

How to display elements inline?


Hi i have small problem with CSS that dont know how to resolve.

On my WHMCS template i wanted to implement one element more, and now one element goes in row bellow (Get support). How to fix this?

enter image description here

This is CSS from that element:

.home-shortcuts {
margin: 0;
/*background:#25a2c7;*/
background: #5E35B1;
padding-left: 250px;
margin-top: -60px;
color: #fff
}

and this is code from header.tpl file

<div class="col-sm-12 col-md-8">
                <ul>
                     <li>
                        <a id="btnOrderHosting" href="cart.php">
                            <i class="fa fa-headphones"></i>
                            <p>
                                Créer une radio <span>&raquo;</span>
                            </p>
                        </a>
                    </li>
                    {if $registerdomainenabled || $transferdomainenabled}
                        <li>
                            <a id="btnBuyADomain" href="domainchecker.php">
                                <i class="fa fa-globe"></i>
                                <p>
                                    {$LANG.buyadomain} <span>&raquo;</span>
                                </p>
                            </a>
                        </li>
                    {/if}
                    <li>
                        <a id="btnOrderHosting" href="cart.php">
                            <i class="fa fa-hdd-o"></i>
                            <p>
                                {$LANG.orderhosting} <span>&raquo;</span>
                            </p>
                        </a>
                    </li>
                    <li>
                        <a id="btnMakePayment" href="clientarea.php">
                            <i class="fa fa-credit-card"></i>
                            <p>
                                {$LANG.makepayment} <span>&raquo;</span>
                            </p>
                        </a>
                    </li>
                    <li>
                        <a id="btnGetSupport" href="submitticket.php">
                            <i class="fa fa-envelope-o"></i>
                            <p>
                                {$LANG.getsupport} <span>&raquo;</span>
                            </p>
                        </a>
                    </li>
                </ul>
            </div>

Some advice how to show all in one row?


Solution

  • You can see that your li elements are 24% width. Reduce them to 20% (100 / 5 = 20, and you have five items in your list). That's it.

    .home-shortcuts li {
      width: 20%;
    }