Ads Posted January 11, 2008 Share Posted January 11, 2008 I do all my testing in Firefox, but i opned up my Site in IE, and everything looks crap, All the tables are dis aligned and look bad, and everything, how do i fix this? Quote Link to comment Share on other sites More sharing options...
mr_mind Posted January 11, 2008 Share Posted January 11, 2008 that depends on the site. IE and firefox are very different and IE is extremely backwards. so if you can post your code i will most certainly help you Quote Link to comment Share on other sites More sharing options...
Ads Posted January 11, 2008 Author Share Posted January 11, 2008 <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="720" height="500" > <th width="720" height="107" valign="top"> <img border="0" src="images/top_logo.png"><br> |<a href="index.php">Home</a> | <a href="reg.php">Register</a> | <a href="rules.php">Rules</a> | <a href="pass.php">Password</a> | <a href="story.php">Story line</a>| </th> <tr> <th width="403" height="450" bgcolor="#111111" scope="row"> <form method="post"> <p align="center"> <span class="style2">Enter Email:</span> <br> <input type="text" name="email" width="120" height="15"> <br> <span class="style2">Enter Password:</span><br> <input type="password" name="password" width="120" height="15"> <br> <br> <input name="Submit" type="submit" value="Submit"> </p> <font color="white"> <p align="center"><?php if(!empty($msg)) {echo $msg;}?></p> <p align="center"> </div> </font> <br /> <br /> <br /> <strong>Messages:</strong> <div align="center"><?php include "game_news.php" ?></div> </td></th> </tr> </table> </center> </body> </html> Thats just a Table that stuffs up Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted January 11, 2008 Share Posted January 11, 2008 your code doesn't validate - the first th is not contained withing a row. validate your markup first and then see if its still bad (PS tables for layout is IMO not very good! stick to css layouts) Quote Link to comment Share on other sites More sharing options...
mr_mind Posted January 11, 2008 Share Posted January 11, 2008 Alright, i can tell that you are a little bit new to this so i have some tips for you 1). Indent your code at every opening tag. 2). everything in a table must be within <tr> tags 3). <center> has been deprecated, user <div align=center> 4). always make your code XHTML compliant <div align=center> <table border=1 cellpadding=0 cellspacing=0 style="border-collapse: collapse; border-color: #111111; width: 720; height: 500;"> <tr> <td width="720" height="107" valign="top"> <img border="0" src="images/top_logo.png"> <br /> | <a href="index.php">Home</a> | <a href="reg.php">Register</a> | <a href="rules.php">Rules</a> | <a href="pass.php">Password</a> | <a href="story.php">Story line</a>| </td> </tr> <tr> <td width="403" height="450" bgcolor="#111111" scope="row"> <form method="post"> <div align="center"> <span class="style2">Enter Email:</span> <br /> <input type="text" name="email" width="120" height="15" /> <br /> <span class="style2">Enter Password:</span> <br /> <input type="password" name="password" width="120" height="15" /> <br /> <br /> <input name="Submit" type="submit" value="Submit" /> </div> </form> <span style="color: #ffffff; text-align: center;"><?php if(isset($msg)) { echo $msg; }?></span> <br /> <br /> <br /> <strong>Messages:</strong> <div align="center"><?php include "game_news.php" ?></div> </td> </tr> </table> </div> Quote Link to comment Share on other sites More sharing options...
tibberous Posted January 14, 2008 Share Posted January 14, 2008 4). always make your code XHTML compliant There is no reason to do do this, or to use XHTML. Quote Link to comment Share on other sites More sharing options...
atticus Posted January 14, 2008 Share Posted January 14, 2008 4). always make your code XHTML compliant There is no reason to do do this, or to use XHTML. XHTML is useful because it allows easy integration of XML, which is very useful and the future of database applications in web sites. Secondly, it is much cleaner and the search engines prefer the code to content ratio. I recently redesigned a website in xhtml/css and saw it jump to the top ten in Google with in a month. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted January 18, 2008 Share Posted January 18, 2008 4). always make your code XHTML compliant There is no reason to do do this, or to use XHTML. Yes and no. XHTML is not intented for use with just html/css and no xhtml. If you validate xhtml w/ out xml there is a warning that pops out. As mentioned before, there is nothing wrong in using it as it makes future changes easier. XHHTML is often preferred by professionals - so why not jump on the band wagon? Quote Link to comment 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.