Hey,
for some reason I can not get my two Div's to touch. There seems to be no reason why there is a space there... It almost seams as if I hit an enter key and it places a <br /> tag. However... Since i'm using notepad... i know thats not the case.
here is my css.
and the html.PHP Code:/* CSS Document */
BODY
{
background-color:#999999;
}
/*begin div.# tags*/
div.main_contain
{
background-color:#FFFFFF;
margin-bottom:0px;
margin-left: auto;
margin-right: auto;
min-width:800px;
max-width:1000px;
border: thick 2px #000000;
}
div.bannor
{
padding:0px, 0px, 0px, 0px;
background:#0099FF;
width:100%;
height:100px;
}
div.info_bar
{
float:left;
padding:0px 0px 0px 0px;
font-size:24px;
margin-top:0px;
float:none;
background-color:#FF0000;
color:#FFFFFF;
}
PHP Code:<!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">
<!-- DW6 -->
<head>
<!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>-Night Lance- Personals.</title>
<link href="http://personals.nightlance.com/css/personals.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p align="center">
<div class="main_contain">
<!--bannor section-->
<div class="bannor">
</div><!--end of <div id="bannor"> -->
<!--info bar section-->
<div class="info_bar" align="center">
<?php
if(isset($error))echo $error;
if(isset($site_error))echo $site_error;
?>
<p>Hello</p>
</div><!--end of <div class="info_bar">-->
</div><!--end of <div id="main_contain">-->
</p>
</body>
</html>





Bookmarks