My area is not CSS, I learned the basics these days and I'm just breaking a branch here.
My problem is with margin-left
of a button, in Chrome it is in the correct position but when I go through Internet Explorer it goes back to the left some pixels :
In Google Chrome:
InInternetExplorer:
The button in XHTML:
<div class="titulo">Você está no</div>
<h:panelGroup rendered="#{MBTemplate.indexAtual == '/index_publico.xhtml'}">
<div class="card-container"
onclick="location.reload();
location.href = 'index_privado.xhtml'"
onmouseover="javascript: rotacionarIconeDireita();"
onmouseout="javascript: rotacionarIconeEsquerda();">
<div class="card">
<div class="side">Setor Público</div>
<div class="side back">Ir ao Setor Privado</div>
</div>
<img src="assets/img/mudar_setor.gif" class="icone" id="icone" />
</div>
</h:panelGroup>
<h:panelGroup rendered="#{MBTemplate.indexAtual == '/index_privado.xhtml'}">
<div class="card-container"
onclick="location.reload();
location.href = 'index_publico.xhtml'"
onmouseover="javascript: rotacionarIconeDireita();"
onmouseout="javascript: rotacionarIconeEsquerda();">
<div class="card">
<div class="side">Setor Privado</div>
<div class="side back">Ir ao Setor Público</div>
</div>
<img src="assets/img/mudar_setor.gif" class="icone" id="icone" />
</div>
</h:panelGroup>
CSS:
.titulo {
margin-top: 10px;
margin-left: 61px;
width: 100px;
}
.icone {
margin-left: 107px;
margin-top: 3px;
position: absolute;
margin-top: 3px;
}
.card-container {
cursor: pointer;
height: 50px;
perspective: 600;
position: relative;
width: 200px;
margin-top: 5px;
margin-left: 5px;
}
.card {
height: 100%;
position: absolute;
transform-style: preserve-3d;
transition: all 1s ease-in-out;
width: 100%;
}
.card:hover {
transform: rotateY(180deg);
}
.card .side {
backface-visibility: hidden;
border-radius: 6px;
height: 100%;
position: absolute;
overflow: hidden;
width: 100%;
background: #eaeaed;
color: #0087cc;
line-height: 50px;
text-align: center;
}
.card .back {
background: #eaeaed;
color: #0087cc;
line-height: 50px;
text-align: center;
transform: rotateY(180deg);
}