eaglelegend Posted April 4, 2008 Share Posted April 4, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/ Share on other sites More sharing options...
Yesideez Posted April 4, 2008 Share Posted April 4, 2008 Is your stylesheet being loaded? If yes and you've got textalign="center" in cl try changing this line: <div class="cl" align="center"> Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509151 Share on other sites More sharing options...
eaglelegend Posted April 4, 2008 Author Share Posted April 4, 2008 well that center thing was made by the validator (XHTML) However im not sure now what was previously making the site center >_< Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509161 Share on other sites More sharing options...
Yesideez Posted April 4, 2008 Share Posted April 4, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509162 Share on other sites More sharing options...
eaglelegend Posted April 4, 2008 Author Share Posted April 4, 2008 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"> Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509164 Share on other sites More sharing options...
cooldude832 Posted April 4, 2008 Share Posted April 4, 2008 and the php problem is??? Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509167 Share on other sites More sharing options...
eaglelegend Posted April 4, 2008 Author Share Posted April 4, 2008 hey cooldude832, it is no longer at the center of the page, as you may of seen yesterday it was center... the content of the page that is Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509170 Share on other sites More sharing options...
cooldude832 Posted April 4, 2008 Share Posted April 4, 2008 hey cooldude832, it is no longer at the center of the page, as you may of seen yesterday it was center... the content of the page that is and the php problem is??? Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509172 Share on other sites More sharing options...
eaglelegend Posted April 4, 2008 Author Share Posted April 4, 2008 I dont know, why isnt it center like it is supposed to be? or was... Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509174 Share on other sites More sharing options...
cooldude832 Posted April 4, 2008 Share Posted April 4, 2008 I dont know, why isnt it center like it is supposed to be? or was... php doesn't manage your styling that is xhtml/css Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509176 Share on other sites More sharing options...
Yesideez Posted April 4, 2008 Share Posted April 4, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/99528-no-longer-center/#findComment-509177 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.