Nieuw lid |
|
ik heb een css layout gemaakt maar nu zit er een witte regel tussen 2 divjes, hoe krijg ik mijn layout aan elkaar?
Hier mn html:
<?php function nukeMagicQuotes() {
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value) {
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
return $value;
}
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
}
}
?>
<?php nukeMagicQuotes(); ?>
<?php
// Connect to the database
$cnx = mysql_connect("localhost", "suzan2_suzan2", "wachtwoord");
if (!$cnx) {
die("Unable to connect to database!");
}
// Select your database
mysql_select_db("suzan2_suzan2", $cnx);
// Get data from the database
$query = mysql_query("SELECT data FROM fck_data WHERE id = 2");
$data = mysql_fetch_array($query);
?>
<head>
<meta http-equiv="Content-Language" content="nl" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Suzan Van Der Sman - Kleurrijkpalet.nl</title>
<LINK REL="stylesheet" HREF="stijl.css" TYPE="text/css">
<script type="text/javascript" language="JavaScript1.2" src="images/um_menu.js"></script>
<style type="text/css">
.style1 {
font-family: "Lucida Handwriting";
font-size: x-large;
}
.style2 {
font-family: "Lucida Handwriting";
}
</style>
</head>
<body style="background-color: #E0E0E0">
<div id="container"><div id="header"></div><div id="menu"><script type="text/javascript" language="JavaScript1.2" src="images/menu.js"></script>
</div><div id="inhoud"><?php echo $data[data]; ?></div><div id="footer"></div></div>
</body>
</html>
<?php function nukeMagicQuotes() { function stripslashes_deep($value) { return $value; } $_POST = array_map('stripslashes_deep', $_POST); $_GET = array_map('stripslashes_deep', $_GET); $_COOKIE = array_map('stripslashes_deep', $_COOKIE); } } ?> <?php nukeMagicQuotes(); ?> <?php // Connect to the database $cnx = mysql_connect("localhost", "suzan2_suzan2", "wachtwoord"); if (!$cnx) { die("Unable to connect to database!"); } // Select your database // Get data from the database $query = mysql_query("SELECT data FROM fck_data WHERE id = 2"); ?> <head> <meta http-equiv="Content-Language" content="nl" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Suzan Van Der Sman - Kleurrijkpalet.nl</title> <LINK REL="stylesheet" HREF="stijl.css" TYPE="text/css"> <script type="text/javascript" language="JavaScript1.2" src="images/um_menu.js"></script> <style type="text/css"> .style1 { font-family: "Lucida Handwriting"; font-size: x-large; } .style2 { font-family: "Lucida Handwriting"; } </style> </head> <body style="background-color: #E0E0E0"> <div id="container"><div id="header"></div><div id="menu"><script type="text/javascript" language="JavaScript1.2" src="images/menu.js"></script> </div><div id="inhoud"> <?php echo $data[data ]; ?></div><div id="footer"></div></div> </body> </html>
en de css:
#header {
height: 150px;
width:800px;
background-image:url("images/header.jpg");
}
#menu {
width:800px;
height:28px;
background-image:url("images/menu.png");
}
#inhoud {
background-image:url(images/achtergrond.png);
margin:0 auto;
position:relative;
width:800px;
}
#thumbs {
width:150px;
height:400px;
background-image:url("images/thumbs.png");
float: left;
}
#footer {
background:#E0E0E0 url(images/footer.png) no-repeat;
width:800px;
height:50px;
clear: both;
}
#container {
width:800px;
margin:0 auto;
}
.style1 {
font-family: "Lucida Handwriting";
font-size: x-large;
}
.style2 {
font-family: "Lucida Handwriting";
}
#header { height: 150px; width:800px; background-image:url("images/header.jpg"); } #menu { width:800px; height:28px; background-image:url("images/menu.png"); } #inhoud { background-image:url(images/achtergrond.png); margin:0 auto; position:relative; width:800px; } #thumbs { width:150px; height:400px; background-image:url("images/thumbs.png"); float: left; } #footer { background:#E0E0E0 url(images/footer.png) no-repeat; width:800px; height:50px; clear: both; } #container { width:800px; margin:0 auto; } .style1 { font-family: "Lucida Handwriting"; font-size: x-large; } .style2 { font-family: "Lucida Handwriting"; }
hier een voorbeeld van hoe het nu is http://www.kleurrijkpalet.nl/goed/biografie.php
|