NameSilo

Page design

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

ctechguy

Established Member
Impact
0
website.jpg


This is my code but i want the menu and header to touch the menu
Code:
<html>
<head>
<title>Chris McIntosh's Website</title>
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
<link rel="stylesheet" type="text/css" href="print.css" media="print" />

</head>

<body>
<table width="100%" height="129">
<td class="noprint">
<?php
include ("http://www.krugferd.net/users/ctechguy/head.html");
?></td>
</table>
<!-- Table for Main Body -->
<table border="0" width="100%" >
<td valign="baseline" align="left" width="90" class="noprint">
<?php
include ("http://www.krugferd.net/users/ctechguy/menu.html");
?>
</td>
<td width="1"  bgcolor="lightskyblue" valign="top">  </td>
<td valign="top">

<?php 
switch($_GET['id']){
case 'photo':
include 'http://www.krugferd.net/users/ctechguy/pics/photos.php';
break;}

switch($_GET['id']){
case 'home':
include ("http://www.krugferd.net/users/ctechguy/page1body.html");
break;}

?>
<br> <br>
</td>
<td width="1" bgcolor="lightskyblue" valign="top">   </td>
</tr></table>

<table width="100%"  border="0">
  <tr>
    <th scope="col"><?php
include ("http://www.krugferd.net/users/ctechguy/footer.html");
?></th>
  </tr>
</table>
</body></html>
 
Last edited:
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
i will give the first person who fixes this 10 np$ not much but i don't have many.
 
0
Close
First of all, include() will not work with external files, or even any domain in the argument at all. Use "/home/yourusername/public_html/whatever" instead.

It would also help if we knew what kind of code was in head.html. Please post that :)
 
0
Close
head


HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
	background-color: #525252;
}
-->
</style></head>
<body>
<img src="http://www.krugferd.net/users/ctechguy/pics/conner.gif" width="144" height="129"><img src="http://www.krugferd.net/users/ctechguy/pics/logo.jpg" width="490" height="129">
</body>
</html>
 
0
Close
In the style sheet for head.html, make it this:

HTML:
body {
	background-color: #525252;
        margin: 0px;
}

Does that help at all?
 
0
Close
that didn't help, i found a space thing in the menu so i deleted that and it's a bit closer. I think it is includeing to much of the header. Is there a way to set the size for the include
 
0
Close
Well, you should also in head.php, get rid of EVERYTHING except:

HTML:
<img src="http://www.krugferd.net/users/ctechguy/pics/conner.gif" width="144" height="129"><img src="http://www.krugferd.net/users/ctechguy/pics/logo.jpg" width="490" height="129">

... for which I would recommend taking out head.html entirely and just putting that image tag where you need it.
 
0
Close
i got rid of head and just added the logo image to a new table above the old but still have a small gap, mabey from table

i got rid of head and just added the logo image above the old table but still have a small gap, mabey from table
 
0
Close
i got it fixed
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back