2
My area isn’t even CSS, I learned the basics these days and I’m just breaking a branch here.
My problem is with margin-left
from a button, in Chrome it is in the correct position but when I enter through Internet Explorer it goes back to left some pixels:
In Google Chrome:
In Internet Explorer:
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);
}
Because java and java-ee tags?
– Victor Stafusa
He doesn’t seem to be going back here in this example in jsFiddle: http://jsfiddle.net/rf2k9qjh/
– Chun
Which internet explorer?
– Guilherme Nascimento
I put such tag because java is part of my application, but I think I screwed up , but all right kk
– Filipe Dognani
William, tested in IE 8 and 9.
– Filipe Dognani
I tried to use % and in , but the problem persists , if anyone can help me please, and of vital importance
– Filipe Dognani
@Chun, in the jsfiidle example, accessing here with Chrome, retreated.. Windows 10.
– Daniel Omine