per CSS Schriftart für Seite festlegen
Marcus
- css
HAllo,
wie lege schrfitart bzw. größe für normalen text einer Seite an, am besten der gesamten Seite ...
beim link funzt es mit a:link aber was muss ich für text machen???
vielen dank jetzt schonmal
HAllo,
wie lege schrfitart bzw. größe für normalen text einer Seite an, am besten der gesamten Seite ...
beim link funzt es mit a:link aber was muss ich für text machen???
vielen dank jetzt schonmal
Mit dem Body Tag:
BODY
{
FONT-FAMILY: Verdana;
FONT-SIZE: 10pt;
COLOR: #000000;
}
gruß Christoph
<style type="text/css">
A:link {
FONT-SIZE: 10px;
COLOR: #426bae;
FONT-FAMILY: Arial, Helvetica, Helv;
TEXT-DECORATION: none; }
A:visited {text-decoration: none; color: #426bae}
A:active {text-decoration: none; color: #426bae}
A:hover {text-decoration: none; color: #63a0a0}
BODY {
FONT-SIZE: 10px;
FONT-FAMILY: Arial, Helvetica, Helv; }
</style>
------------------------------------
Warum geht das dann nicht ?
beim link funzt es und der text hat auch keine eigene formatoerung
nochmal vielen dank
marcus
geht denn alles nicht? Steht im body tag vielleicht noch was?
also z.B.:
<body bgcolor="#FF0000" color="#FFFFFF"> oder so? Ist dein CCS auch im <head></head> drin?
nein, nichts der gleichen, hier der gesamte code
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
A:link {
FONT-SIZE: 10px;
COLOR: #426bae;
FONT-FAMILY: Arial, Helvetica, Helv;
TEXT-DECORATION: none; }
A:visited {text-decoration: none; color: #426bae}
A:active {text-decoration: none; color: #426bae}
A:hover {text-decoration: none; color: #63a0a0}
BODY {
FONT-SIZE: 10px;
FONT-FAMILY: Arial, Helvetica, Helv; }
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0">
<tr>
<td colspan="2" height="2" bgcolor="#426bae"></td>
</tr>
<tr>
<td bgcolor="#d7d7d7" width="60%" align="left" valign="top">
Inhalt: <a href="mailto:ok.redaktion@xxxxxx.de">Redaktion</a> | Administration:
<a href="mailto:ok.webmaster@xxxx.de">Webmaster</a><br>
Wichtige Warnhinweise zur Nutzung von xxxxx und Intranet
</td>
<td bgcolor="#d7d7d7" width="40%" align="right" valign="top">
Stand: 31.10.2002<br>
Copyright 2002 xxxx Aktiengesellschaft
</td>
</tr>
</table>
</body>
</html>
Ja kein Wunder Marcus!
Du hast ja auch alles in einer Tabelle da stehen!
Dafür musst du im CSS noch was ergänzen!:
td, table, tr
{
FONT-SIZE: 10pt;
FONT-WEIGHT: 100;
COLOR: #000000;
FONT-FAMILY: Arial, Helvetica, Helv;
}
oder schreibst das so:
.normal
{
FONT-SIZE: 10pt;
FONT-WEIGHT: 100;
COLOR: #000000;
FONT-FAMILY: Arial, Helvetica, Helv;
}
<td class="normal" bgcolor="#d7d7d7" width="60%" align="left" valign="top">
Inhalt: <a href="mailto:ok.redaktion@xxxxxx.de">Redaktion</a> | Administration:
<a href="mailto:ok.webmaster@xxxx.de">Webmaster</a><br>
Wichtige Warnhinweise zur Nutzung von xxxxx und Intranet
</td>
gruß Christoph
Hi Marcus,
wie lege schrfitart bzw. größe für normalen text einer Seite an, am besten der gesamten Seite ...
beim link funzt es mit a:link aber was muss ich für text machen???
body { http://selfhtml.teamone.de/css/eigenschaften/schrift.htm#font_family }
LG Roland