Nieuw lid |
|
Hey, ik ben dus bezig met 'n klein projectje, naja.
(ik gebruik FireFox)
en de head, in de content neemt niet goed aan..
Zie: http://webtoolz.z-borre.be/
De heads van de content willen niet volledig in de div komen..
<div id="content-wrap">
<div id="menu">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="head">algemeen</td>
</tr>
<tr>
<td><a href="index.php" title="Home">Home</a></td>
</tr>
<tr>
<td><a href="?page=bmi" title="Home">BMI Berekenen</a></td>
</tr>
</table>
</div>
<div id="content">
<table width="100%" cellpadding="0" cellspacing="0">
<?php
if ($_GET['page'] == 'home') {
?>
<tr>
<td class="head">home</th>
</tr>
<?php
echo '<tr><td class="main">D:</td></tr>';
}
elseif ($_GET['page'] == 'bmi') {
?>
<tr>
<td class="head">bmi berekenen</th>
</tr>
<?php
$inc = 'bmi.php';
echo '<tr><td class="main">';
include($inc);
echo '</td></tr>';
}
elseif ($_GET['page'] == NULL) {
?>
<tr>
<td class="head">home</th>
</tr>
<?php
echo '<tr><td class="main">D:</td></tr>';
}
elseif ($_GET['page'] != $pages) {
?>
<tr>
<td class="head">error</th>
</tr>
<?php
echo '<tr><td class="main">Deze pagina bestaat niet.</td></tr>';
}
?>
</table>
</div>
</div>
<div id="content-wrap"> <div id="menu"> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="head">algemeen</td> </tr> <tr> <td><a href="index.php" title="Home">Home</a></td> </tr> <tr> <td><a href="?page=bmi" title="Home">BMI Berekenen</a></td> </tr> </table> </div> <div id="content"> <table width="100%" cellpadding="0" cellspacing="0"> <?php if ($_GET['page'] == 'home') { ?> <tr> <td class="head">home</th> </tr> <?php echo '<tr><td class="main">D:</td></tr>'; } elseif ($_GET['page'] == 'bmi') { ?> <tr> <td class="head">bmi berekenen</th> </tr> <?php $inc = 'bmi.php'; echo '<tr><td class="main">'; include($inc); } elseif ($_GET['page'] == NULL) { ?> <tr> <td class="head">home</th> </tr> <?php echo '<tr><td class="main">D:</td></tr>'; } elseif ($_GET['page'] != $pages) { ?> <tr> <td class="head">error</th> </tr> <?php echo '<tr><td class="main">Deze pagina bestaat niet.</td></tr>'; } ?> </table> </div> </div>
en de css..
#content-wrap {
border: 1px solid #0373E5;
height: 99%;
background: white;
}
#content {
position: relative;
float: left;
width: 706px;
}
#content .head {
background: #0373E5;
color: white;
text-align: center;
font-variant: small-caps;
font-weight: bold;
width: 100%;
}
#content-wrap { border: 1px solid #0373E5; height: 99%; background: white; } #content { position: relative; float: left; width: 706px; } #content .head { background: #0373E5; color: white; text-align: center; font-variant: small-caps; font-weight: bold; width: 100%; }
Alvast bedankt voor de hulp.
|