homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

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

 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?



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

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



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

<!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">
<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" />

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

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

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

<td width="160" valign="top"><?php include_once "right_AD_template.php"; ?></td>
<?php include_once "footer_template.php"; ?>


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

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.


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

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.


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

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.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved