Ik zit vast bij zelfstudie bij

Status
Niet open voor verdere reacties.

marvy

Gebruiker
Lid geworden
25 dec 2000
Berichten
396
Hallo,

Ik begrijp niet waarom de stijl niet wordt aangepast na het toevoegen van het style gedeelte.
Het is een oefening uit het boek "HTML , XHTML & CSS for dummies"

HTML:
!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”[url]http://www.w3.org/1999/xhtml”[/url] lang=”en” xml:lang=”en”>
<head>
<title>Pixel’s Page</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1” />
<style type=”text/css”>
#navBar{
background-color: #CCC;
border-bottom: #999;
border-left: #999;
border-width: 0 0 thin thin;
border-style: none none groove groove;
display: block;
float: left;
margin: 0 0 0 10px;
padding: 0 10px 0 10px;
width: 107px;
line-height: 0.2em;
}
</style>
</head>

<body>

<h1>I’m Pixel the Cat. Welcome to my page.</h1>
<div id=”navBar”>
<p>Links of interest:</p>
<p><a href=”http://www.google.com/”>Google</a></p>
<p><a href=”http://www.amazon.com/”>Amazon</a></p>
<p><a href=”http://www.bing.com/”>Bing</a></p>
<!--
</div>
<img src=”/images/pixel1.jpg” alt=”The Cat” width=”320” height=”240”
id=”theCat” /> -->
</body>
 
Laatst bewerkt door een moderator:
Ik weet niet precies hoe de door jouw gedefinieerde waardes worden omgezet tot quotes, maar je kan normale quotes gebruiken.

Code:
<head>
<title>Pixel’s Page</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1” />
<style type="text/css">
#navBar{
background-color: #CCC;
border-bottom: #999;
border-left: #999;
border-width: 0 0 thin thin;
border-style: none none groove groove;
display: block;
float: left;
margin: 0 0 0 10px;
padding: 0 10px 0 10px;
width: 107px;
line-height: 0.2em;
}
</style>
</head>
 
<body>
 
<h1>I’m Pixel the Cat. Welcome to my page.</h1>
<div id="navBar">
<p>Links of interest:</p>
<p><a href=”http://www.google.com/”>Google</a></p>
<p><a href=”http://www.amazon.com/”>Amazon</a></p>
<p><a href=”http://www.bing.com/”>Bing</a></p>
</body>

Neem een kijkje op de volgende link: http://www.w3schools.com/tags/tag_style.asp
 
Jouw code doet het wel maar ik zie geen verschil ?

Ik weet niet precies hoe de door jouw gedefinieerde waardes worden omgezet tot quotes, maar je kan normale quotes gebruiken.

Code:
<head>
<title>Pixel’s Page</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1” />
<style type="text/css">
#navBar{
background-color: #CCC;
border-bottom: #999;
border-left: #999;
border-width: 0 0 thin thin;
border-style: none none groove groove;
display: block;
float: left;
margin: 0 0 0 10px;
padding: 0 10px 0 10px;
width: 107px;
line-height: 0.2em;
}
</style>
</head>
 
<body>
 
<h1>I’m Pixel the Cat. Welcome to my page.</h1>
<div id="navBar">
<p>Links of interest:</p>
<p><a href=”http://www.google.com/”>Google</a></p>
<p><a href=”http://www.amazon.com/”>Amazon</a></p>
<p><a href=”http://www.bing.com/”>Bing</a></p>
</body>

Neem een kijkje op de volgende link: http://www.w3schools.com/tags/tag_style.asp
 
gevonden


Door het copieren vanuit pfd was '' niet "
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan