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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.