Witam,
układ dwóch zakładek zrobionych na input radio w fierefoxie doprowadza do najeżdżania label na div z treścią, a w chromie się rozjeżdża tworząc minimalną, ale jednak lukę O_o
Ktoś coś może widzi, czego ja nie widzę, co pomogłoby zlikwidować problem
.tabs {
position: relative;
height: 300px; /* This part sucks */
clear: both;
margin: 25px 0;
}
.tab {
float: left;
}
.tab label {
background: rgba(113, 139, 176, 0.8);
padding: 8px 50px;
border: 0px solid rgba(48, 80, 127, 0.5);
margin-right: 15px;
margin-left: -1px;
position: relative;
left: 1px;
}
.tab [type=radio] {
display: none;
}
.content {
position: absolute;
display:none;
top: 28px;
left: 0;
background: rgba(48, 80, 127, 0.8);
right: 0;
bottom: 0;
padding: 0px 20px;
border: 0px solid #30507f;
}
[type=radio]:checked ~ label {
background: rgba(48, 80, 127, 0.8);
border-bottom: 0px solid rgba(48, 80, 127, 0.8);
z-index: 2;
}
[type=radio]:checked ~ label ~ .content {
z-index: 1;
display:block
}
<input type="radio" id="tab-1" name="tab-group-1" checked>
<jdoc:include type="modules" name="buy" style="xhtml" />
<input type="radio" id="tab-2" name="tab-group-1">
<jdoc:include type="modules" name="rent" style="xhtml" />