Join the forums now, and start posting to receive access to our Scripts Vault!
<html><title>MY GAME INDEX</title><body bgcolor="black"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3" > <h1></h1> <img src="csbackground.jpg" height="150" width="250"> <img src="bg_top_planet.jpg"> <img src="csbackground.jpg" height="150" width="220"> </td> </tr> <tr valign="top"> <td style="background-color="black";width:20%; text-align:top;" > <img src="csbackground.jpg" height="610" width="150"> <img src="csbackground.jpg" height="610" width="150"> </td> <td style="background-color="black";height:200px; width:80%;text-align:top;"<body background="csbackground.jpg">><font color="white"> <center><font face="calibri" size="2"> "To infinity and beyond"- Buzz Lightyear<br><br> blah blah blah <br>blah blah blah<br> blah blah blah<br><br> This is your journey.......<br><br></center> <center> <center><font face="calibri" size="2"><b> <a href="mygame_login.php">LOGIN</a> <a href="mygame-registration.php">REGISTER</a> FORUM WIKI</b><br><br> </td> <td style="background-color="black"; width:20%;text-align:top;"> <img src="csbackground.jpg" height="610" width="150"> <img src="csbackground.jpg" height="610" width="150"> </td> </tr> <table</body> </html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>MY GAME INDEX</title> <!-- <title> is important for SEO, use as many keywords as possible --> <!-- Put a <base/> tag here !!! --> <meta name="description" content="" /> <!-- Description that you hope SEs (search engines) will use, good for SEO --> <meta name="keywords" content="" /> <!-- keywords for SEO, not very important nowadays but can still hurt your SEO if not careful--> <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> <!-- change charset if not using UTF-8 encoding--> <meta http-equiv="Content-Language" content="en-us" /> <meta http-equiv="imagetoolbar" content="no" /> <!-- Keeps IE6's toolbar from poping up when someone's mouse pointer hovers over your layout--> <meta name="MSSmartTagsPreventParsing" content="true" /> <!-- Prevents theoretical MS Stupidity Tags --> <link rel="stylesheet" media="all" type="text/css" href="styles.css" /> <!-- Path/Name of your CSS file (media="all" stops browsers on phones from trashing your CSS) --> </head> <body> <table border="0" cellspacing="0" cellpadding="0" class="MainTable" > <tr> <td colspan="3" > <h1></h1> <!-- Not Needed? Although.... Google likes <h1>'s though for SEO, and for Adwords.... --> <img src="csbackground.jpg" class="Image-NorthLeft"/> <img src="bg_top_planet.jpg"/> <img src="csbackground.jpg" class="Image-NorthRight"/> <div class="CellFillerToMakeSureTableWorksRight"> </td> </tr> <tr> <td class="Cell-Southwest"> <img src="csbackground.jpg" class="Images-South"/> </td> <td class="Cell-South"> "To infinity and beyond"- Buzz Lightyear <br/> <br/> blah blah blah <br/> blah blah blah <br/> blah blah blah <br/> <br/> This is your journey.......<br/> <br/> <span class="LinkSpan"> <a href="mygame_login.php">LOGIN</a> <a href="mygame-registration.php">REGISTER</a> FORUM WIKI </span> <br/> <br/> </td> <td class="Cell-Southeast"> <img src="csbackground.jpg" class="Images-South"/> </td> </tr> </table> </body></html>
/*=====================================================================================================Necessities=====================================================================================================*/ html, body { height: 100%; /*Force IE to have 0% be the top of the page and 100% be the bottom of viewer */ width: 100%; /*Force IE to have 0% be left edge and 100% be right edge of viewer, instead of 94%.... */ margin: 0px; /*Stop stupid IE from adding a margin by default*/ padding: 0px; /*Stop IE from adding unwanted padding*/ overflow:auto; /*Gets rid of any useless right scrollbar in IE*/ overflow-x:hidden; /*Kills off bottom scrollbar, just in case*/ }/*=====================================================================================================Fixies=====================================================================================================*/ /*Keep browsers from murdering dynamic transparency for <img>s and also make IE render them right*/ img { filter: alpha(opacity=100); /*IE proprietary junk*/ opacity: 1.0; /*The real way, W3C compliant*/ -moz-opacity:1.0; /*old Netscape*/ -khtml-opacity: 1.0; /*old Safari and Konqueror*/ border-style:none; margin: 0px; padding: 0px; } /*To try to protect tables from being rendered stupidly by IE*/ tr, td { margin: 0px; padding: 0px; } /*=====================================================================================================Possible styles for this page :=====================================================================================================*/ body { background-color:#000000; color:#FFFFFF } .MainTable { position:absolute; width:100%; } .Image-NorthLeft { height:150px; width:250px; } .Image-NorthRight { height:150px; width:220px; } .Images-South { height:610px; width:300px; } .Cell-North { height:150px; min-height:150px; } .Cell-Southwest { background-color:#000000; /*Not needed ??*/ width:20%; vertical-align:top; /*only use vertical-align on tables as it works weird everywhere else*/ } .Cell-South { background-color:#000000; /*Not needed ?*/ height:200px; width:60%; /*60%, not 80%, but the browsers won't even look at this line anyway, as they read the 1st and last cells in the <tr> beforehand... Thus, not needed*/ vertical-align:text-top; text-align:center; /*text-align regrettably only works horizontally*/ font-family: calibri, sans-serif; /*fonts only display if they exist on the users computer, make sure to add back-up fonts, put either "serif" or "sans-serif" at the end of the list for if all else fails*/ font-size:0.8em; /*Always put font-size in em because IE is evil that way*/ } .Cell-Southeast { background-color:black; /*Not needed ??*/ width:20%; vertical-align:top; } .LinkSpan { font-weight:bold; } .CellFillerToMakeSureTableWorksRight { width:1px; height:150px; }
Dump whatever your current learning course is. Table-based design is sooo 1990 (going for a "valley girl" accent here but you can't do that via text). lol Learn how to use CSS (seriously, it's pretty simple and shouldn't take you long) and you'll be much better off.
As a web designer, it's still valuable to know tables, it's not yet been deprecated at all.
It's also pre-mature and naive to write off tables like you seem to have; hell, popular sites like Google, Amazon, YouTube, Twitter, Ebay, etc. use tables. CSS is great, but people who preach pure CSS are just trolls.
CSS still has problems with resizing, wrapping, alignment, vertical centering, etc. CSS works most of the time, but when it doesn't you end up trying to implement a handful of hacks and workarounds for compatibility. Yes, it's superior to tables for display if you're only supporting some modern browsers, but it doesn't have the cross-browser compatibility of tables. So yeah, not getting into tables vs css/divs.
Even if they did come out with a W3C-compliant version, or rip off an open source project like Apple did, we'd still have to wait for all the IE users who don't update their browsers to die of old age.
Realistically, there is only one browser that has given CSS the mislabel of being difficult to work with or "quirky" and it's the industry's lack of moving past this browser that holds it back.
...designing with CSS is second nature to me. Do I run into quirks from time to time? Sure! But that's part of the fun! Otherwise design would be dreadfully boring work. lol
Do you get out much?
Learn how to use CSS (seriously, it's pretty simple and shouldn't take you long) and you'll be much better off.
For me, the fun of programming comes from overcoming challenges and finding new solutions to old problems.