0
Guys I’m having a problem with my comic, well I want to change my comic so that all the elements stay the same. But I tried to do this with the following HTML:
<div class="button_profile">
<form method="POST" enctype="multipart/form-data" action="/account/upload">
<label class="label"><input type="file" name="file">Alterar foto de perfil</label>
<button type="button">Chat</button>
<a href="mailto:[email protected]?subject=subject">Email</a>
</form>
</div>
And the following css comic:
.button_profile button,label, a{
width:100%;
font-family:Arial,Helvetica,sans-serif;
color:#fff;
border:2px solid #fff;
background:#151515;
text-decoration:none;
text-transform:uppercase;
letter-spacing:2px;
padding:5px;
margin-top:20px;
margin-bottom:20px;
}
The problem is that it’s modifying the elements that are outside the div and I don’t want that, but when I create a class it solves and I don’t want to create an unnecessary class, can someone tell me where I’m going wrong?? Logically what I’m doing is modifying all button label
and a
who are children of the div button_profile
.
No, the way you wrote only the button needs to be descended from
.button_profile
.– bfavaretto