1
I would like to know why the div social networks leave the div "menu" whenever I use the float for images to go to the right side.
html:
    <header id = "topo">
        <div class = "menu">
            <div class = "nome-empresa">
                <img src = "Dev.png">
            </div>
            <div class = "redes-sociais">
                <ul>
                    <li>
                        <a href = "#"><img src = "link.png" alt= "linkedin" width="30"></a>
                    </li>
                    <li>
                        <a href = "#"><img src = "link.png" alt= "linkedin" width="30"></a>
                    </li>
                    <li>
                        <a href = "#"><img src = "link.png" alt= "linkedin" width="30"></a>
                    </li>
                </ul>
            </div>
        </div>
    </header>
</body>
css:
 #topo {
    background-color: #000000;
    margin: auto;
}
.nome-empresa {
    padding-left: 40px;
    padding-top: 5px;
    padding-right: 80%;
}
.redes-sociais {
    float:right;
}
ul li {
    list-style: none;
    display: inline-block;
}
Take a look at this link it can help you, there contain numerous float techniques
– DbaAlone
https://www.richardbarros.com.br/css/css-truques-para-dominar-a-propriedade-float
– DbaAlone