test mijn code, werkt niet php

Status
Niet open voor verdere reacties.

uaejeroen

Terugkerende gebruiker
Lid geworden
7 dec 2009
Berichten
1.665
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>Untitled Document</title>
</head>

<body>
<div id="apDiv1"> <a href="/index.php"><img src="/afbeeldingen/carhirehead.jpg" width="1094" height="112" alt="home" /></a>
</div>
<div id="apDiv2">
<a href="index.php?p=cars">Cars </a>
</div>   
<div id="apDiv3">
<a href="index.php?p=contact">contact </a>
</div>
<div id="apDiv4">

<?php
if (isset($_GET['p'])) {
$includebstandtemp = $_GET['p'];
if (is_file($_GET['p'] . '.html')) {
$includebstand = ''.$includebstandtemp.'.html';
}
}
else {
$includebstand = '';
}
if (!empty($includebstand)) {
include($includebstand);
}
?>

<?php if (!isset($_GET['p'])) { ?>
<h1>We only supply top condition
 Toyota Vios, Vigo and Fortuner vehicles</h1>
<p><strong>Rates from 800 baht per day<br />
Minimum hire period 4 days <br />
<br />
Full insurance cover<br />
Long term rental discounts<br />
Free local delivery<br />
Low mileage fully serviced<br />
Nationwide breakdown cover<br />
<br />
Contact us<br />
<a href="mailto:inquiry@carhuahin.com">inquiry@carhuahin.com</a><br />
+66 80-2208519</strong></p>
<?php } ?>


</div>

</body>
</html>

Ik heb deze van een bestande site van mijzelf maar nu klopt er niks meer van ?
Waarom zet deze niet netjes drie div naast elkaar?

Ik kan hem ook al niet meer opslaan dan zeg DW
Encountered a sharing violation while accessing?

Wie kan me hiermee helpen
 
beste

hartelijk dank voor uw advies

in de css ?

Ik geloof niet dat je een css bestand moet hebben om de div naast elkaar te krijgen ?

Maar ik zal kijken
 
@charset "utf-8";
.text {
text-align: center;
font-style: normal;
}
.text {
text-align: center;
}
.text {
text-align: left;
}
.Title {
text-align: left;
}
.tekst {
text-align: left;
}
body {

}
body,td,th {
font-size: 12px;
}
a:link {
color: #90F;
}
a:visited {
color: #666;
}
a:hover {
font-style: italic;
color: #22FF22;
}
a:focus {
font-style: italic;
color: #22FF22;
}
.e-mail {
color: #696969;
}

#apDiv2 {background: #ffffff;}
#apDiv2 {
position:absolute;
left:32px;
top:117px;
width:206px;
height:468px;
z-index:2;
}
#apDiv2 {
position:absolute;
left:32px;
top:117px;
width:206px;
height:468px;
z-index:2;
}


#apDiv3 {background: #ffffff;}
#apDiv3 {
position:absolute;
left:885px;
top:117px;
width:241px;
height:475px;
z-index:3;
}
#apDiv3 {
position:absolute;
left:885px;
top:117px;
width:241px;
height:475px;
z-index:3;
}


#apDiv4 {background: #ffffff;} #apDiv4 {
position:absolute;
left:238px;
top:114px;
width:645px;
height:471px;
z-index:4;
}
#apDiv4 {
position:absolute;
left:238px;
top:114px;
width:645px;
height:471px;
z-index:4;
}


#apDiv1 {
position:absolute;
left:32px;
top:4px;
width:1095px;
height:111px;
z-index:1;
}
#apDiv1 {
position:absolute;
left:32px;
top:4px;
width:1095px;
height:111px;
z-index:1;
}

.Waarschuwing {
}
.Waarschuwing {
}

#Waarschuwing {
font-family: "Arial Black", Gadget, sans-serif;
}
#Waarschuwing {
font-family: "Arial Black", Gadget, sans-serif;
}

.background {
background-image: url(/afbeeldingen/groen-wit.gif);
background-repeat: repeat;
}

Zoiets bedoelt u ?

Nou hartelijk dank ik hoop dat ik nu verder kom
 
Zonder css zal een div altijd 100% breed zijn.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan