CSS stylesheets: Schrift muss kleiner

Moritz Zbocna

Mitglied
Hallo ihr,
Ich habe eine Seite gemacht und die (wie man das nunmal macht) mit externen Stylesheets versehen.
Nun ist es aber so, dass die Schrift zu groß angezeigt wird. (steht zur Zeit auf 10pt) Ich habe sie schon versucht auf 8 pt zu machen, doch ohne wirkung.

Kennt jemand ein Lösung?

Hier mal mein CSS code:
CODE body
{
color:#000000;
font-size: 8pt;
font-family:Arial;
}

h1
{
font-size:20pt;
font-weight:bold;
font-family: Arial;
}
h2
{
font-size:18pt;
font-weight:bold;
font-family: Arial;
}
h3
{
font-size:10pt;
font-weight:bold;
font-family: Arial;
}

a:link
{
color:#0000BF;
text-decoration: none;
font-family:Arial;
}
a:visited
{
text-decoration: none;
color:#0000BF;
font-family:Arial;
}
a:active
{
text-decoration: none;
color:#0000BF;
font-family:Arial;
}
a:hover
{
text-decoration: none;
color:#000000;
font-family:Arial;
}
 
Schriftgrössen innerhalb von <td>-Elementen werden nicht von body vererbt. Wenn du die Seite also als Tabellen aufbaust würd ich noch folgendes machen:
CODE
td
{
color:#000000;
font-size: 8pt;
font-family:Arial;
}

 
Ausserdem würde ich die Schriftgrösse in em-Einheiten angeben. Dies bewirkt, dass die Schriftgrösse im Browser vergrössert werden kann. Barrierefreiheit.

CODE font-size: 0.8em;
 
Ah OK danke!
Das kann sein. Bin halt noch auf der Schwelle zum Fortgeschrittenen. Danke schonmal!

MFG
Moritz
 
Zurück
Oben