1 <!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{ margin:0; padding:0;}
        ul{ list-style: none}
        a{ text-decoration: none; color: cadetblue }

        .l{float: left;}
        .r{ float: right}
        .clear:after{ content:""; display: block; clear: both; }

        /*li{ float: right}*/
        #head .menu{ margin-right: 100px;}
        #head .menu li{float: right; margin-left: 20px;}
    </style>
</head>
<body>
    <div id="head" class="container">
        <ul class="menu r">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">ABOUT</a>
            </li>
            <li>
                <a href="#">PROTFOLIO</a>
            </li>
            <li>
                <a href="#">SERVICE</a>
            </li>
            <li>
                <a href="#">NEWS</a>
            </li>
            <li>
                <a href="#">CONTACT</a>
            </li>
        </ul>
    </div>
</body>
</html>