I have a container with the display property: flex Inside the container I have several elements aligned horizontally with each other. When I change the size of the window some of the elements its width is changing for example in the elements
How can I change the width of certain elements? In my case I would be interested to not change the size of "button2"
Example:
HTML:
<div class ="contenedor">
<div class ="celda" >
<span class="titulo1">Titulo1</span>
<span class="titulo2">Titulo2</span>
<button class="boton1">Boton1</button>
<button class="boton2" />
</div>
</div>
CSS:
.celda {
display: flex;
justify-content: space-between;
align-items: center;
}
.boton2 {
width: 30px;
height: 30px;
border: 1px solid;
background: url("../imagen/imagen.png");
}