![]() |
|||||||||||||||
|
Old School Website Design: Screen-Width Adapting Websites
Having developed for the web since 1998, I've subjected my readers and visitors to a wide variety of good and bad website design, and I wanted to talk a little bit about how we used to "kick it old school" in this ongoing feature.Today's subject is the screen-width adapting website. This particular style of design was all the rage back in the day, and usually involved time-consuming code revision and an involuntary lobotomy (because it took so much effort to get it to work across different browsers). It's not that this type of site has completely died off; it's just that it's usually handled with CSS nowadays. Back then, we had to use tables (the horror)! For starters, in order for a screen-width adapting website to work properly, we had to enter these attributes in the <body> tag: marginwidth="0" marginheight="0" Without this snippet of code, you couldn't get the site to stretch to the outer edges of the browser window (resulting in unwanted white space). The fact that you had to create a table with a width of 100% is a no-brainer to anyone who has used tables before, but the rest of the code was usually less-than-intuitive (it gives me a headache just thinking about it). Are you sure you want to see this? Okay, this is the code from an old design I did circa 2003. Brace yourself...
All in all I'm surprised that I was able to keep the code that compact. Notice how most images have these attributes: hspace="0" vspace="0" ![]() An older incarnation of Arctic Sunburn. Some images also have <br> tags right after them in order to combat white space. Some empty <td> cells contain <br> tags for the same reason. It seems completely counter-intuitive, but we did whatever we could do to get it working. Notice the tables nested within tables. After awhile this can be a bit of a coding nightmare; especially if you forget to close a tag. The rest of the code is pretty straight forward, all told. I just remember that there was a lot of fixing and editing that went in to it when I first pieced it together. In conclusion, I hope that this has been an interesting trip down memory lane for you; it certainly has been for me. When I scanned through the content and updates on the old website some memories came flooding back and I started to remember what life was like back then. In any case, if you're looking to create a screen-width adapting site I would recommend that you look up a good CSS tutorial. This is not a how-to guide. This is what we had to do to get things working back in the day. More old school designs coming soon! Other Old School Screen-Width Adapting Sites: Alex's World Related Articles: Old School Website Design: Frames This article was written by David Andrew Wiebe, web designer, graphic designer, guitarist, bassist, keyboardist, songwriter, guitar instructor, and music expert. Interested in winning a free CD? Click here for more info! Questions? Comments? Suggestions? Recommendations? Email me. Published on February 27, 2008 |
GOOGLE SEARCH
|
||||||||||||||