View Single Post
      06-25-2008, 11:40 PM   #11
billspreston
Colonel
billspreston's Avatar
337
Rep
2,253
Posts

Drives: G87
Join Date: Jul 2005
Location: CA

iTrader: (13)

Quote:
Originally Posted by .:bHd:. View Post
Okay quick question to you guys.. What do I need to learn that controls the layout of the site. Seems like CSS is mostly the text and stuff and Xhtml is html but stricter lol. So how do you code the layout of the site without using tables?
You use XHTML strictly as markup tool to define the content structure of your site. You then use css to handle how/where those XHTML elements will be displayed when rendered to the browser. You design sites without using tables by using a combination of positioning techniques centered around the <div> element. I would research the float, position, and clear CSS attributes as those are the keys to positioning a div, or any other block level element (h1,h2,p,etc...) within a webpage.

If you are familiar with designing a site in tables, CSS is going to be a difficult concept for you to grasp at first. I would search for online articles that specifically deal with you how to accomplish table techniques using more modern div/css techniques. I also still heavily recommend any WROX published book you can get your hands on. They have the popular ones at Barnes & Noble, Borders, etc...

These validators will be your friend while learning and a coder will always try to write valid code even though sometimes it is not possible.

http://validator.w3.org/

http://jigsaw.w3.org/css-validator/
Appreciate 0