tazzzie007
Gebruiker
- Lid geworden
- 28 nov 2009
- Berichten
- 18
Goeiedag
Ik heb een probleem om een stylesheet te linken aan een html-bestand. Het lukt om de <a>-tag aan te passen, maar bij de <body>-tag gebeurt er niets.
Ik hoop dat iemand mij kan helpen, want ik heb al bijna alles geprobeerd.
CSS:
<style type = "text/css">
<!--
body {
font-family: Arial;
font-size: 1.1em;
color: #003;
background-image: url(foto.gif);
}
a:link {
color: black;
text-decoration: none;
}
a:hover {
color: blue;
}
-->
</style>
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="lay-out.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="txt/html; charset=iso-8859-1" />
<title> Default </title>
</head>
<body >
Tekst
<a href="link"> link </a>
</body>
</html>
Alvast bedankt
Tazzzie007
Ik heb een probleem om een stylesheet te linken aan een html-bestand. Het lukt om de <a>-tag aan te passen, maar bij de <body>-tag gebeurt er niets.
Ik hoop dat iemand mij kan helpen, want ik heb al bijna alles geprobeerd.
CSS:
<style type = "text/css">
<!--
body {
font-family: Arial;
font-size: 1.1em;
color: #003;
background-image: url(foto.gif);
}
a:link {
color: black;
text-decoration: none;
}
a:hover {
color: blue;
}
-->
</style>
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="lay-out.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="txt/html; charset=iso-8859-1" />
<title> Default </title>
</head>
<body >
Tekst
<a href="link"> link </a>
</body>
</html>
Alvast bedankt
Tazzzie007