ChidoriSoul Posted August 26, 2009 Share Posted August 26, 2009 Ok, so I have my website, and I just made a table, but the font in the table is different from everything else. I don't know why it is like this.Picture of IndexMy Stylesheet CodeMy Index Page: <?phpsession_start();?><html><!--[if IE]> <link rel="stylesheet" type="text/css" href="allie.css" /><![endif]--><center><head><title>Pokemon Planet - Version 0.1</title><link rel='stylesheet' type='text/css' href='stylesheet.css'><body> <?php if (isset($_SESSION['user_id'])) { ?><div id="container"> <div id="banner"></div> <div id="frame"> <div id="leftmenu"><div style="padding: 3px;"> <center><b>General Options</b><br/><a href='index.php'>Index</a><br/><a href='logout.php'>Logout</a><br/><br/><b>Miscellaneous</b><br/><a href='chat.php'>Chat</a><br/><a href='donate.php'>Donate</a></center> </div></div> <div id="content"><div style="padding: 3px;"> <center><u>Pokemon Planet!</u><br/><table border='1' cellpadding='0' cellspacing='0'><tr><th>Avatar</th><th>News</th></tr><tr><td width='10%'><center><img src='images/sprites/luxray.png' alt='luxray' /></center></td><td width='90%'><center>Welcome to Pokemon Planet. Yes, I know the layout is kinda weird, but it is the best I got, so just hang on tight. I have now finished Register, and now it is time for Login!<br/><br/><b>To do:</b><br/><img src='images/Bullet.png' alt='bullet'> <font color='green'>Index: 100%</font><br/><img src='images/Bullet.png' alt='bullet'> <font color='green'>Register: 100%</font><br/><img src='images/Bullet.png' alt='bullet'> <font color='green'>Login: 100%</font><br/><img src='images/Bullet.png' alt='bullet'> <font color='red'>Chatbox: 75%</font><br/><img src='images/Bullet.png' alt='bullet'> <font color='green'>Logout: 100%</font><br/><br/><br/><p><a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /></a></p><br/><br/>You are now Logged in, if you see this, I have this done =)</center></td></tr></table> </div></div> <div id="rightmenu"><div style="padding: 3px;"> <center><b>General Options</b><br/><a href='index.php'>Index</a><br/><a href='logout.php'>Logout</a><br/><br/><b>Miscellaneous</b><br/><a href='chat.php'>Chat</a><br/><a href='donate.php'>Donate</a></center> </div></div> </div> <div id="footer"><center><font color='#000000'>Pokemon Planet is © 2009 by Shadow. This site is created and coded by Shadow. Pokemon Planet is in no way affiliated with Nintendo, Pokémon Company, Game Freak, Creatures, or any related organizations. Most Pokémon images (sprites, icons, map tiles, etc.) are © Nintendo and their publishers. Images are slightly modified in order to meet certain needs upon this website.</font></center></div></div> <?php } else { ?> <div id="container"> <div id="banner"></div> <div id="frame"> <div id="leftmenu"><div style="padding: 3px;"> <center><b>General Options</b><br/><a href='index.php'>Index</a><br/><a href='register.php'>Register</a><br/><a href='login.php'>Login</a><br/><br/><b>Miscellaneous</b><br/><a href='chat.php'>Chat</a><br/><a href='donate.php'>Donate</a></center> </div></div> <div id="content"><div style="padding: 3px;"> <center><u>Pokemon Planet!</u><br/>Welcome to Pokemon Planet. Yes, I know the layout is kinda weird, but it is the best I got, so just hang on tight. I have now finished Register, and now it is time for Login!<br/><br/><b>To do:</b><br/><font color='green'>Index: 100%</font><br/><font color='green'>Register: 100%</font><br/><font color='green'>Login: 100%</font><br/><font color='red'>Chatbox: 75%</font><br/><font color='green'>Logout: 100%</font><br/><br/><br/><p><a href="http://jigsaw.w3.org/css-validator/check/referer"> <img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS!" /></a></p></center> </div></div> <div id="rightmenu"><div style="padding: 3px;"> <center><b>General Options</b><br/><a href='index.php'>Index</a><br/><a href='register.php'>Register</a><br/><a href='login.php'>Login</a><br/><br/><b>Miscellaneous</b><br/><a href='chat.php'>Chat</a><br/><a href='donate.php'>Donate</a></center> </div></div> </div> <div id="footer"><center><font color='#000000'>Pokemon Planet is © 2009 by Shadow. This site is created and coded by Shadow. Pokemon Planet is in no way affiliated with Nintendo, Pokémon Company, Game Freak, Creatures, or any related organizations. Most Pokémon images (sprites, icons, map tiles, etc.) are © Nintendo and their publishers. Images are slightly modified in order to meet certain needs upon this website.</font></center></div></div> <?php } ?> </body></html> Link to comment Share on other sites More sharing options...
alexnofue Posted August 26, 2009 Share Posted August 26, 2009 Hi, first of all, don't use deprecated tags, use their css replace, so change things like:<div id="footer"><center><font color='#000000'>Pokemon Planet is ...</font></center></div>for this:<div id="footer"><font color='#000000'>Pokemon Planet is ...</div>and in your css file:#footer{color: #000000; text-align: center;}also you have some problems here:<center> --misplaced tag, that if that tag wasn't deprecated<head><title>Pokemon Planet - Version 0.1</title><link rel='stylesheet' type='text/css' href='stylesheet.css'></head> --no closing tag<body> Link to comment Share on other sites More sharing options...
ChidoriSoul Posted August 26, 2009 Author Share Posted August 26, 2009 OK, thank you for those corrections, how how do I change the problem with the Table Font? Link to comment Share on other sites More sharing options...
Ingolme Posted August 26, 2009 Share Posted August 26, 2009 Did you look at your own stylesheet? You're setting a font here: #newstable { width: 350px; font: verdana; float: middle;} By the way middle is not a valid value for the float property. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.