Jump to content

Problem with space at top of wrapper using Include statement


jsparrow

Recommended Posts

I have a basic web page that is a rectangle and I'm trying to put a box within this rectangle at the top, but it has a space that I can not figure out how to get rid of.  Here is the code for the index.php, top.inc and align.css files:

 

index.php

<html>
<head> 
<title> Home </title>
<link rel="stylesheet" href="align.css" type="text/css">
</head>
<body>

<div id="wrapper">  

<div id="logo"> <?php include ("top.inc") ?> </div>

</div>

</body>
</html>

 

 

top.inc

<html>
<head>

</head>

<p> Show this to me </p>

</html>

 

align.css

body {
font-family: Arial, Helvetica, sans-serif;
	font-size:100%;
padding:0px;
   	background-color:white;
text-align:center;    

}  

#wrapper {
	width:600px;
height:850px;
margin:70px auto auto auto;
	background-color:yellow; 
border-style:solid;
border-width:2px;
border-color:green;

}


#logo {
width:600px;
height:280px;
margin:0px auto 0px auto;
background-color:orange;
}

 

How do I get rid of the space at the top of the top.inc and make if flush with the top of the wrapper?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.