Guten Tag,
ich habe meine Links folgend definiert:
Allerdings ist die Breite absolut 100px. Ich möchte es aber ganz gern, dass sich die Breite an die Weite der Schrift anpasst. Also relativ. Gibts da eine direkte Möglichkeit?
ich habe meine Links folgend definiert:
Code:
a {
display:block;
text-align:right;
width: 100px;
text-decoration:none;
}
a:link {
color:#fff;
background-color: #2e2d2d;
}
a:visited {
color:#fff;
background-color: #2e2d2d;
text-decoration: underline;
}
a:hover {
color:#2e2d2d;
background-color:#fff;
}
a:active {
color:#2e2d2d;
background-color:#fff;
}
Allerdings ist die Breite absolut 100px. Ich möchte es aber ganz gern, dass sich die Breite an die Weite der Schrift anpasst. Also relativ. Gibts da eine direkte Möglichkeit?