Ich habe folgendes Konstrukt:
<div class="rte_line">
<div class="rte_content">
<span class="rte_style">Test</span>
</div>
</div>
Mit den CSS-rules:
.rte_line {
position: relative;
height: 19px;
}
.rte_content {
height: 100%;
}
.rte_style {
height: 100%;
font-family: Arial, Helvetica, sans-serif;
font-size: 16px;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: #42281B;
background-color: #FFFFFF;
}
Wenn ich nun im Chrome-Debugger die einzelnen Nodes anschaue, hat die äusserste div mit der Klasse "rte_line" eine Höhe von 19px, rte_content auch noch, doch der span der Klasse "rte_style" ist nur noch 18px hoch. Wisst ihr, woher diese Differenz kommt?
Lg Silvan

Hilfe
Neues Thema
Antworten

Nach oben





