[php]
This is the container. The $include is the following php file :
[php]require_once("…/.common/.init.php");
$db = new PDO(DBASE);
if (!isset($pos)) {$pos =0;}
print <<< START
bekijk de nieuwe spullenSTART;
//advertenties
$result = $db->query(“SELECT * FROM AanbodSpul ORDER BY id DESC LIMIT 24 OFFSET $pos;”);
$teller=$pos;
// mededeling.php
foreach($result as $row)
{ extract($row);
$teller+=1;
if ($status == $statuscode)
{$lid=" Lid: $lidnr"; $w = ‘w’;}
$tekst = stripslashes($tekst);
if($teller == 1)
$lidnr = “Vakantie”;
if (strlen($lidnr) < 6)
{$plaatje="…/fotoos/".$id.".jpg";
$src="resizefoto.php?plaatje=$plaatje";
if (!is_file($plaatje))
{$src='../fotoos/blanco.gif';}
$info = "Spullen:$id <small>$datum</small>$lid";
echo "
";if($teller == 12)
echo “
”;
}
else
{
echo "<div id = 'mededeling' ><h2>$lidnr</h2>Tot 19 augustus geen nieuw aanbod</div>";
}
}
$db = NULL;[/php]
The CSS :
[code]img#foto {
margin-top: 0px;
padding: 20px;
border: 0px;
vertical-align:top;
-webkit-border-radius: 12px;
border-radius: 12px;
}
div#infoblok
{
margin-top: -20px;
width : 210px;
display:block;
color: White;
font-size: 14px;
font-weight: bold;
font-family: Arial, Helvetica, Sans-serif;
text-decoration:none;
background-color: Darkslategrey;
}
#localtekstblok
{
width: 210px;
display: block;
color: Darkblue;
font-size: 14px;
font-weight: bold;
font-family: Arial, Helvetica, Sans-serif;
text-decoration:none;
text-align: left;
line-height: 100%;
background-color: white;
-webkit-border-radius: 12px;
border-radius: 12px;
}
#mededeling
{
float: left;
width: 210px;
height: 250px;
margin-top: 20px;
background-color: #00A0E3;
color: white;
font-size: 20px;
font-weight: normal;
font-family: Arial, Helvetica, Sans-serif;
text-decoration:none;
text-align: center;
margin-left: 20px;
padding-right: 10px;
padding-left: 10px;
}
#ad
{
display: table-cell;
width:340px;
height: 280px;
background-color: Silver;
}[/code]
In Netscape and firefox it looks like this : http://kwikweb.nl/paginas/indexbody.php
How should I edit the code that it looks the same in Internet Explorer ? As you can see the #mededeling# div in IE is aligned above the #ad divs. But the #mededeling div should be inline with the #ad divs. What should I do ?
Thanks in advance,
Farid