Jump to content

NO longer center...


eaglelegend

Recommended Posts

Hey,

This is the source code viewable by my site, and this, my site used to be in the direct center, before I tried convert it to XHTML, however its now on the direct left... any ideas?

 

    <!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see www.w3.org" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Mark Richardson" />
<meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!" />
<meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids" />
<meta name="revised" content="Eagle Legend, 04/04/08" />
<title>Eagle Legend</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script language="javascript" type="text/javascript">
//<![CDATA[
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');");
}
//]]>
</script>
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
/*<![CDATA[*/
div.c1 {text-align: center}
/*]]>*/
</style>

<style type="text/css">
/*<![CDATA[*/
img.c1 {border:0;width:88px;height:31px}
/*]]>*/
</style>

<style type="text/css">
/*<![CDATA[*/
img.c1 {border:0;width:88px;height:31px}
/*]]>*/
</style>

<style type="text/css">
/*<![CDATA[*/
img.c2 {border:0;width:88px;height:31px}
span.c1 {color: red}
/*]]>*/
</style>
</head>
<body>
<div class="c1">
<table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000">
<tr>
<td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend" /></a></td>
</tr>
<tr>
<td width="180" valign="top" align="left" bgcolor="#04AA44">
<h2>Navigation</h2>
- <a href="index.php">Home</a><br />
- <a href="register.php">Register</a>
<h2>Login</h2>
<form action="login.php" method="post">Username<br />
<input type='text' name='username' size='15' />
<p>Password<br />
<input type='password' name='password' size='15' /></p>
<p><input type='submit' value='Login' /></p>
</form>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="mark@eaglelegend.com" /><input type="hidden" name="item_name" value="ELv2" /><input type="hidden" name="no_shipping" value="0" /><input type="hidden" name="no_note" value="1" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="tax" value="0" /><input type="hidden" name="lc" value="GB" /><input type="hidden" name="bn" value="PP-DonationsBF" /><input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /><img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" /></form>
<p><script language="Javascript" src="http://apexwebgaming.com/current_stats.php?style=2&id=2619" type="text/javascript">
</script><br />
<strong>Current VPS Rank:</strong> 12th!</p>
<p>-<a href="http://apexwebgaming.com/in/2619"><img src="http://apexwebgaming.com/images/vote_button_1.gif" width="80" height="31" alt="Vote at Apex Web Gaming" border="0" /></a></p>
</td>
<td width="800" valign="top" bgcolor="#70BEFF">
<h1><strong>PLEASE NOTE</strong></h1>
<p><strong><span class="c1">We are currently down as we are cleaning up the code to all internet standards and making the internet safer!, please feel free to join, although the site is currently in BETA!.</span></strong></p>
<p>Eagle Legend is a popular Virtual Pet Site for Children and Teens, since opening, it was named 4th best Virtual Pet Site by Apex Web Gaming, since then Eagle Legend has been down to make the site safer and cleaner than it was! so why not click <a href="http://www.eaglelegend.com/register.php">here</a> to get started, today?!</p>
<h2>Newest Adoptions</h2>
<br />
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td width='33%' valign='top'>
<table border="0" cellpadding="2" cellspacing="0" width="300">
<tr>
<td valign="middle" align="center"><img src='/images/pets/Skitty.png' alt='Skittle' /></td>
<td valign="top" class="other" width="300">QuinzelPHD adopted a Skitty<br />
Name: Skittle<br />
Status: Unhappy<br />
Born: 04/01/08<br />
Points: 0</td>
</tr>
</table>
</td>
<td width='33%' valign='top'>
<table border="0" cellpadding="2" cellspacing="0" width="300">
<tr>
<td valign="middle" align="center"><img src='/images/pets/Xenip.png' alt='xingxing' /></td>
<td valign="top" class="other" width="300">Mark adopted a Xenip<br />
Name: xingxing<br />
Status: Unhappy<br />
Born: 04/01/08<br />
Points: 0</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='33%' valign='top'>
<table border="0" cellpadding="2" cellspacing="0" width="300">
<tr>
<td valign="middle" align="center"><img src='/images/pets/Quadra.png' alt='Occy' /></td>
<td valign="top" class="other" width="300">free adopted a Quadra<br />
Name: Occy<br />
Status: Unhappy<br />
Born: 03/31/08<br />
Points: 0</td>
</tr>
</table>
</td>
<td width='33%' valign='top'>
<table border="0" cellpadding="2" cellspacing="0" width="300">
<tr>
<td valign="middle" align="center"><img src='/images/pets/Avvis.png' alt='avthis' /></td>
<td valign="top" class="other" width="300">Mark adopted a Avvis<br />
Name: avthis<br />
Status: Unhappy<br />
Born: 03/30/08<br />
Points: 0</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='33%' valign='top'>
<table border="0" cellpadding="2" cellspacing="0" width="300">
<tr>
<td valign="middle" align="center"><img src='/images/pets/Wolflint.png' alt='Firedog' /></td>
<td valign="top" class="other" width="300">Mark adopted a Wolflint<br />
Name: Firedog<br />
Status: Unhappy<br />
Born: 03/27/08<br />
Points: 342</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E73738" align="center"><a href="http://apexwebgaming.com/in/2619"><img src="http://apexwebgaming.com/images/vote_button_1.gif" width="80" height="31" alt="Vote at Apex Web Gaming" border="0" /></a> <a href="http://validator.w3.org/check?uri=referer"><img class="c2" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88" /></a> <a href="http://jigsaw.w3.org/css-validator/"><img class="c2" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /></a> <a href='http://www.noslang.com/validate.php?url=www.eaglelegend.com'><img src='http://www.eaglelegend.com/images/slangfree.gif' border='0' alt='Slang Free!' /></a> <a href='http://www.eaglelegend.com/validate.php'><img src='http://www.eaglelegend.com/images/elv2-blue.png' border='0' alt='Slang Free!' /></a>
<p>� Copyright MCMXCVII - MMVIII Eagle Legend. Please Read our Privacy & Cookie Policy before using this site! at www.eaglelegend.com/privacy.php</p>
</td>
</tr>
</table>
</div>
</body>
</html>

WARNING: NOT PHP SOURCE CODE

Link to comment
Share on other sites

Text defaults to the left and you'd need something saying to centre it whether it was CSS or direct inside the HTML.

 

Give my method a go and see how it goes - I'm presuming the modification of the div tag will work.

 

EDIT: Forgot to mention the div tag immediately after the body tag.

Link to comment
Share on other sites

im afaid that didnt work, heres the header...

 

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-strict.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php include("config.php"); ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Mark Richardson" />
<meta name="description" content="Eagle Legend - The newest, safest and best Virtual Pet Site in the hole of Cyberspace!" />
<meta name="keywords" content="eagle legend, eaglelegend, eagle, legend, pets, pet, games, game, virtual, chat, fun, prizes, play, virtual pet, kids" />
<meta name="revised" content="Eagle Legend, 04/04/08" />
<title>Eagle Legend</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script language="javascript" type="text/javascript">
//<![CDATA[
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=600');");
}
//]]>
</script>
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
/*<![CDATA[*/
div.c1 {text-align: center}
/*]]>*/
</style>

<style type="text/css">
/*<![CDATA[*/
img.c1 {border:0;width:88px;height:31px}
/*]]>*/
</style>

<style type="text/css">
/*<![CDATA[*/
img.c1 {border:0;width:88px;height:31px}
/*]]>*/
</style>
</head>
<body>
<div class="c1">
<table border="0" width="980" cellpadding="4" cellspacing="4" bgcolor="#000000">
<tr>
<td colspan="2"><a href="index.php"><img src="images/headers/banner.png" border="0" alt="Eagle Legend" /></a></td>
</tr>
<tr>
<td width="180" valign="top" align="left" bgcolor="#04AA44">
<? include("nav.php"); ?>
</td>
<td width="800" valign="top" bgcolor="#70BEFF">

Link to comment
Share on other sites

What cooldude is getting at is that this isn't really a PHP-related issue but more of an HTML/CSS issue and should really be posted in the appropriate forum instead of here.

 

Read back through my replies again and you should see the answer you're looking for...

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.