Nieuw lid |
|
jo, ik doe iets fout, maar geen idee wat...
<head>
<title>test</title>
<style type="text/css">
</style>
</head>
<body style="background-color: #4C4C4E;">
<b class="groot">Gebruik van een laag</b><br />
<p><b>Hier zie je twee lagen afgebeeld.</b>
</p>
<div id="laag1" style="position: absolute; left: 150px; top: 100px; width: 200px; height: 300px; z-index: 1; border: 1px dashed #3D3D3D;" >
</div>
<div id="laag2" style="position: absolute; left: 155px; top: 105px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0">
</div>
<div id="laag3" style="position: absolute; left: 155px; top: 190px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0">
</div>
<div id="laag3" style="position: absolute; left: 155px; top: 275px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0">
</div>
</body>
</html>
<head> <title>test</title> <style type="text/css"> </style> </head> <body style="background-color: #4C4C4E;"> <b class="groot">Gebruik van een laag</b><br /> <p><b>Hier zie je twee lagen afgebeeld.</b> </p> <div id="laag1" style="position: absolute; left: 150px; top: 100px; width: 200px; height: 300px; z-index: 1; border: 1px dashed #3D3D3D;" > </div> <div id="laag2" style="position: absolute; left: 155px; top: 105px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0"> </div> <div id="laag3" style="position: absolute; left: 155px; top: 190px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0"> </div> <div id="laag3" style="position: absolute; left: 155px; top: 275px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0"> </div> </body> </html>
deze hierboven is goed!, werkt perfect, nu wil ik een external css bestand hebben (klopt de bnaming ) en daar gaat het mis...
<head>
<title>test</title>
<LINK REL="stylesheet" HREF="stijlen.css" TYPE="text/css">
</head>
<body style="background-color: #4C4C4E;">
<div class="laag1">
<div class="laag2">
<div class="laag3">
<div class="laag4">
</div></div></div></div>
</body>
</html>
<head> <title>test</title> <LINK REL="stylesheet" HREF="stijlen.css" TYPE="text/css"> </head> <body style="background-color: #4C4C4E;"> <div class="laag1"> <div class="laag2"> <div class="laag3"> <div class="laag4"> </div></div></div></div> </body> </html>
.laag1{
position: absolute;
left: 150px;
top: 100px;
width: 200px;
height: 300px;
z-index: 1;
border: 1px dashed #3D3D3D;}
.laag2{
position: absolute;
left: 155px;
top: 105px;
width: 190px;
height: 80px;
z-index: 2;
border: 1px dashed #3D3D3D;
font-family: Arial;
color: #E0E0E0;}
.laag3{
position: absolute;
left: 155px;
top: 190px;
width: 190px;
height: 80px;
z-index: 2;
border: 1px dashed #3D3D3D;
font-family: Arial;
color: #E0E0E0;}
.laag4{
position: absolute;
left: 155px;
top: 190px;
width: 190px;
height: 80px;
z-index: 2;
border: 1px dashed #3D3D3D;
font-family: Arial;
color: #E0E0E0:}
.laag1{ position: absolute; left: 150px; top: 100px; width: 200px; height: 300px; z-index: 1; border: 1px dashed #3D3D3D;} .laag2{ position: absolute; left: 155px; top: 105px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0;} .laag3{ position: absolute; left: 155px; top: 190px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0;} .laag4{ position: absolute; left: 155px; top: 190px; width: 190px; height: 80px; z-index: 2; border: 1px dashed #3D3D3D; font-family: Arial; color: #E0E0E0:}
ze komen allemaal naast elkaar te staan?!?
iemand een suggestie?!
BasZer
:s
|