I have a list of items that have a delete button with them.
.container-solicitud-cursos .lista-items .caja-item {
display: grid;
grid-template-columns: 90% 10%;
border-bottom: 2px dashed #c6c6c6;
padding: 1.5em 0em;
}
.container-solicitud-cursos .lista-items .caja-item:first-child {
padding-top: 0;
}
.container-solicitud-cursos .lista-items .caja-item:last-child {
border-bottom: 2px solid #c6c6c6;
}
.lista-items .caja-item .item-eliminar {
background-color: #d9d9d9;
color: #808080;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
transform: rotate(45deg);
font-size: 40px;
border-radius: 50%;
border: 0px;
}
.lista-items .caja-item .item-eliminar:hover{
background-color: #dedede;
color: #adadad;
}
.lista-items .caja-item .item-eliminar::after {
content: "+";
}
<div class="lista-items">
<div class="caja-item">
<div>
<div class="item-titulo">Trabajos de extension en vt (1kv)</div>
<div class="item-resumen">2 Empleados / 1º Trimestre 2021</div>
</div>
<div>
<button class="item-eliminar"></button>
</div>
</div>
And I see things different in Chrome and in Firefox:
This is how it looks in Chrome, it is the result that I expect
This is how it looks in firefox, and I don't want this.
(I tried to execute this code in both browsers, from the SO snippet and I see the same problem, so if you take this question from one browser to another you will see what I see)
The problem is because each browser, by default, applies different styles to different elements.
The solution is to unify these styles, either manually or using an existing library, such as:
demonstration: