Separate JSP CSS icons

Asked

Viewed 57 times

0

I’m wanting to separate my icons, because there are many together but I’m not getting it. By putting the padding the application gets like this.

Increases the with and heigth and not separating the icons.

inserir a descrição da imagem aqui

.redes_sociais{
    padding: 30px;
}

.top{
    padding: 30px;
}
<ul class="top">
    <li><i class="fa fa-phone"></i> Atendimento</li>
    <li><i class="fa fa-envelope"></i> Ajuda</li>    
</ul>
<ul class="redes_sociais">
    <li><i class="fa fa-facebook" action="" ></i></li>
    <li><i class="fa fa-twitter" action=""></i></li>
    <li><i class="fa fa-linkedin" action=""></i></li>
    <li><i class="fa fa-dribbble" action=""></i></li>
    <li><i class="fa fa-google-plus" action=""></i></li>
</ul>

  • You have to add the padding: x in the items within the <ul>.

  • as well as I have to create a div for each <li> ?

1 answer

0

The padding is being applied to the element ul.redes_sociais, and not the items within it (ul.redes_sociais > li).

Add that snippet to your CSS:

.redes_sociais li {
  padding: 30px;
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.