Hej,

Ik had erest me site in css met tabellen en dat werkte perfect alleen in IE werkte de site niet.. dus ik dacht zet het in divjesmaar nu als ik index openen in dreamweaver kan ik niet meer tiepen.. dan komt alles boven de plaatjes wat is er verkeerd?

CSS

@charset "utf-8";
/* CSS Document */

body {
	margin: 0px;
	padding: 0px;
	background-image: url(../images/border.gif);
	background-color: #424242;
}
#header {
	width: 717px;
	margin-right: auto;
	margin-left: auto;
	background-image: url(../images/bgall.jpg);
	margin-top: 30px;
}
#content {
	background-image: url(../images/bgall.jpg);
	width: 717px;
	margin-right: auto;
	margin-left: auto;
	height: 100%;
}
#content #contentin #welkomonder {
	float: left;
	height: 36px;
	width: 314px;
}
#content #contentin #navflash td {
	vertical-align: top;
}

#content #contentin #baronder {
	float: left;
	height: 36px;
}

#content #contentin #welkom {
	float: left;
	width: 314px;
}
#content #contentin #navflash {
	float: left;
}
#content #contentin #copy {
	clear: left;
}
#footer {
	width: 717px;
	margin-right: auto;
	margin-bottom: 20px;
	margin-left: auto;
}


#contentin {
	margin-right: auto;
	margin-left: auto;
	width: 698px;
	}
#headerin {
	margin-right: auto;
	margin-left: auto;
	width: 698px;
	height: 286px;
}


index.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Games</title>
<link href="css/game.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="header">
  <div id="headerin"><img src="images/header.gif" alt="Game viewer" width="698" height="286" border="0" /></div>
</div>

<div id="content">
  <div id="contentin">
    <table width="0" border="0" cellpadding="0" cellspacing="0" id="navflash">
      <tr>
        <td width="172" height="349"><img src="images/navflash.gif" width="172" height="349" /></td>
      </tr>
      <tr>
        <td background="images/navflash.gif"><img src="images/partners.gif" width="172" height="56" /></td>
      </tr>
      <tr>
        <td><img src="images/partnersbg.gif" width="172" height="178" /></td>
      </tr>
      <tr>
        <td><img src="images/parnteronder.gif" /></td>
      </tr>
    </table>
    <table width="0" border="0" cellpadding="0" cellspacing="0"  id="welkom">
      <tr>
        <td><img src="images/welkom.gif" width="303" height="160" border="0" /><img src="images/bar.gif" width="11" height="160" border="0" /></td>
      </tr>
    </table>

<table width="0" border="0" cellpadding="0" cellspacing="0" id="games">
  <tr>
    <td><img src="images/games.gif" width="212" height="160" />
     </td>
  </tr>
</table> <table height="36" border="0" cellpadding="0" cellspacing="0" id="welkomonder">
  <tr>
          <td><img src="images/welkomonder.gif" width="303" height="36" /><img src="images/bar.gif" width="11" height="36" /></td>
      </tr>
      </table>  
<table width="0" border="0" cellpadding="0" cellspacing="0" id="gamesonder">
  <tr>
    <td><img src="images/gamesonder.gif" width="211" height="36" /></td>
  </tr>
</table>
 
  <table width="0" border="0" cellpadding="0" cellspacing="0" id="news">
    <tr>
      <td><img src="images/nieuws.gif" /></td>
    </tr>
  </table><table width="0" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/newsonder.gif" width="526" height="50" /></td>
  </tr>
</table>
  <table width="0" border="0" cellpadding="0" cellspacing="0" id="copy">
  <tr>
    <td><img src="images/copy.gif" /></td>
  </tr>
</table>

  </div>
</div>
<div id="footer"></div>
</body>
</html>



Groetjes Nick
Even offtopic
@SanThe, mag ik vragen wat voor zit het heeft om een 'niet bumpen' reactie te plaatsen? Volgens mij kan je dat veel beter via pm doen, want nu bump je zijn reactie alsnog. En dat een paar minuten nadat hij 'gebumpt' heeft.
Of edit zijn laatste bericht met een 'niet bump' berichtje, dat lijkt mij veel logischer.
Je moet de lijst met fouten rustig en 1 voor 1 afwerken. De eerste fout in de lijst slaat op het feit dat je een div in een td gestopt hebt, en dat is niet toegestaan. Een div is een blocklevel element en die mogen niet in inline elements gestopt worden.
ik zouw egt niet weten hoe ik het oplos?:P
Als ik het prbeer dan gaat alles mis?
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.skoolmusic.nl%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

nick

Edit: nog maar 8 fouten

Edit: VALID!

http://validator.w3.org/check?uri=www.skoolmusic.nl&charset=%28detect+automatically%29&doctype=Inline&group=0#result

Wie kan me nu helpen met het laten werken in IE daar werkt ie heel belabberd in


EdiT: Zouw het msichien met stylesheets kunnen?
Niemand meer..
Nou, ik zou gewoon nooit tabellen gebruiken voor een layout als ik jou was. Ik zou overstappen op een div layout zoals Jan al zei. Dus om je vraag te beantwoorden: Stylesheets it is!
maar divjes kan ik niet.. alleen tabellen.

Ik heb deze fout ook nog nooit gehad dat het zo raar is
Nu is hij niet meer valid..
Vind je het gek; je bent de body tag vergeten:

</head>


<table width="717" align="center" cellpadding="0" cellspacing="0" class="layout">

ik zie nog steeds table tags in je code trouwens ...

Reageren