Welcome to WebmasterWorld Guest from 54.227.83.19

Forum Moderators: incrediBILL

Message Too Old, No Replies

Why is "Body" all the way to the right?

     

Scotty13

2:37 pm on Nov 10, 2012 (gmt 0)



The table is at 100% / center. Iíve even tried right, left, and no change.

Im using Dreamweaver CS4 and when I save the file ďSave AsĒ it centers it, but when test in my browser, itís to the right.

What is going on?
Thanks,
Scotty

mack

7:03 pm on Nov 10, 2012 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



When you say table, are you using an html table, or is it being done with CSS?

Mack.

Scotty13

7:09 pm on Nov 10, 2012 (gmt 0)



<?php
include_once("scripts/checkuserlog.php");
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Description" content="Airline Network" />
<meta name="Keywords" content="about, us, my, global, pnr, social, network, airline, employees, around, world, globe, global, my, global, PNR, social, network, about, reservations, locator, depart, ckin, announcing, announce, vacation, photos, dest, postcard, rent, home, blog, forum, books, travel, work, trip, reservation, book, exchange, organizer" />
<meta name="rating" content="General" />
<meta name="ROBOTS" content="All" />
<title>About Us at My Global PNR</title>
<link href="style/main.css" rel="stylesheet" type="text/css" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
</head>

<body>
<?php include_once 'mgpheader_template.php'; ?>
<table class="mainBodyTable" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="836" valign="top">
<div align="right">
<table width="100%" align="right" cellpadding="6">
<tr>



<td width="100%"><p align="left">Welcome Aboard,
<p align="left">You've </p>
</p>

<p align="left">We'll see you onboard,</p> </p>

</td>
</table>
</div></td>
<td width="160" valign="top"><?php include_once "right_AD_template.php"; ?></td>
</tr>
</table>
<?php include_once "footer_template.php"; ?>
</body>
</html>

drhowarddrfine

11:55 pm on Nov 10, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The body is not to the right at all. Why do you think it is?

btw, your markup was deprecated in 1999. You really need to learn CSS.

lucy24

1:28 am on Nov 11, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



your markup was deprecated in 1999

I guess someone should tell DreamWeaver ;)

And, ahem, for future reference: When you're posting your html and/or css, be selective. It is very very unlikely that your meta tags will have any bearing on the problem you're posting about, so they can safely be cut.

Conversely: include files are either irrelevant or essential. Either way they are part of the page that users will see, so you need to look at the final code, with all includes. That means opening the page from a server, either "live" or a pseudo-server like WAMP, and looking at that code. You can then chop out the parts that have no effect on page layout, and keep the others. Here, the only one I'd wonder about is
<?php include_once 'mgpheader_template.php'; ?>
since it's in the body, before the table. The other two are probably irrelevant.

That's the generic "you", not the OP specifically.

mack

1:44 am on Nov 11, 2012 (gmt 0)

WebmasterWorld Administrator mack is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



I think the prob lies within the CSS file. If you going do as Lucy24 suggested and view the source of the page. Paste here what appears between <body></body> and also the CSS file.

Mack.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month