Hi!
Wenn ich ein CSS-Style folgendermasen anlege:
.ueberschrift {
font-family: Arial;
font-size: 25px;
text-align: center;
font-weight: bold;
color: #6B7EB3;
padding-bottom:0px;
width: 300px;
border-bottom-width: 2px;
border-bottom-style:solid;
border-bottom-color: #6B7EB3;
}
und das Ding zuweise:
<div class="ueberschrift">Text</div><br>
wird das ganze links ausgerichtet.
Kommentiere ich aber /*width: 300px;*/ aus, wird das Ganze mittig platziert.
Wieso?
Was mache ich falsch & wie bekomme ich den Schriftzug mit einer Unterlinie, die länger als der Text ist (weshalb ja text-decoration imho wegfällt), zentriert ausgerichtet?
Danke im Voraus. :)
Christian
P.S.: Ich nutze den IE 6.0.26...