css fout?

Gestart doorDylan9 reacties41 weergaven

10 berichten · pagina 1 van 1

Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Ey
ik ben bezig met een site maar ik kom nu al op 2 problemen!
klik hier!

FOUT 1:De tekst die je ziet staan zit niet in het vakje waar het hoort.
FOUT 2:Ik denk dat je hem al ziet. Het grote vak is niet helemaal goed hij zit in het vakje waar het menu komt.

How to fix?

// EDIT FOUT 1 OPGELOST

Html code:

<html> 
<head> 
<title>Starpagina: Home</title> 
<link href="style.css" rel="stylesheet" type="text/css" /> 
</head> 
<body> 
<div id="desc"> 
<div id="banner"><br><center>ONDERHOUD</center></div> 
<br /> 
<div id="menu"><br><center>BlaBla</center></div> 
<div id="con"><br><br><center>hoihoi</center></div> 
</body> 
</html>


Css:

img { border: 0; }

body {
  background-color: #C1EAF9;
}

#desc {
  font-family: Calibri;
  font-weight: bold;
  font-size: 17px;
  color: #0DCCED;
  margin-bottom: 10px;
  margin-right: 0px;
  margin-left: 0px;
  margin-top: 0px;
  text-align: left
  padding-top: 4px;
  height: 19px;
  width: 700px;
  border: 0px;
}
#banner {
  background-image: url(img/banner.png);
  margin-bottom: 0px;
  margin-right: auto;
  margin-left: 0px;
  margin-top: 0px;
  height: 148px;
  width: 1015px;
  border: 0px;
  float: center;
}
#menu {
  background-image: url(img/menu.png);
  margin-bottom: 0px;
  margin-right: auto;
  margin-left: 0px;
  margin-top: 0px;
  height: 322px;
  width: 227px;
  border: 0px;
  float: left;
}
#con {
  background-image: url(img/con2.png);
  margin-bottom: 0px;
  margin-right: auto;
  margin-left: 0px;
  margin-top: 0px;
  height: 321px;
  width: 794px;
  border: 0px;
  float: center;
}
0
Berichten
4.451
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
laat codes zien dan yummie
0
Berichten
1.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Bartv schreef:
laat codes zien dan yummie
Is wel zo handig... emo
0
Berichten
12.729
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
kan je toch gewoon uit zen website halen...emo
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
In IE ziet het er nog anders uit dan in FF....
0
Berichten
1.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Patricka schreef:
kan je toch gewoon uit zen website halen...emo
Okay, maar is wel handiger als hij ze gelijk erbij zet yes_new.
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Codes toegevoegt
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Codes toegevoegt smile
Sorry voor dubbel post!
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Zoiets:

<html>
<head>
<title>Starpagina: Home</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="desc">
<div id="banner"><br><center>ONDERHOUD</center></div>
<br />
<div id="menu"><br><center>BlaBla</center></div>
<div id="con"><br><br><center>hoihoi</center></div>
</body>
</html>


Edit:
Fix is: verander css naar:

img { border: 0; }

body {
  background-color: #C1EAF9;
}

#desc {
  font-family: Calibri;
  font-weight: bold;
  font-size: 17px;
  color: #0DCCED;
  margin-bottom: 10px;
  margin-right: 0px;
  margin-left: 0px;
  margin-top: 0px;
  text-align: left
  padding-top: 4px;
  height: 19px;
  width: 1500px;
  border: 0px;
}
#banner {
  background-image: url(img/banner.png);
  margin-bottom: 0px;
  margin-right: auto;
  margin-left: 0px;
  margin-top: 0px;
  height: 148px;
  width: 1015px;
  border: 0px;
  float: center;
}
#menu {
  background-image: url(img/menu.png);
  margin-bottom: 0px;
  margin-right: auto;
  margin-left: 0px;
  margin-top: 0px;
  height: 322px;
  width: 227px;
  border: 0px;
  float: left;
}
#con {
  background-image: url(img/con2.png);
  margin-bottom: 0px;
  margin-right: auto;
  margin-left: 0px;
  margin-top: 0px;
  height: 321px;
  width: 794px;
  border: 0px;
  float: left;
}
0
Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Bedankt ^^

Slotje
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren