PDA

View Full Version : Tableless Design


webcool
03-10-2009, 12:55 AM
Few days ago I was trying to build a website with tables but I faced tremendous amount of difficulty while doing that. Some tables began to behave awkwardly and started in different directions. So I would like to build a website in div next time. Could you please help me in this respect.

jimbursch
04-20-2009, 11:49 PM
what would you like to know?

webcool
04-24-2009, 01:20 AM
How to design a website using using div sans tables. This is what I want to know in simple English.

James
05-03-2009, 07:03 PM
Good explanation:
http://www.robinsblog.com/11032005/css-multi-column-layout-resources/
(if you need more basic CSS help, go to http://w3schools.com

Crappy explanation:
<style type="text/css">
body { text-align: center; margin:0;padding:0;** // text-align center is for IE6 to center the wrap column
#wrap { width: 740px; margin: 0 auto; text-align:left;** // setting a width, setting the margin for other browsers so the page is centered, with no top margin
#l { width: 200px; float:left; ** // float left tells the browser to make this the left column..
#r { margin-left: 200px; ** // telling the right column how far to displace itself from the left side.
#footer { clear: both; ** // when columns are floated, the surrounding div doesn't necessarily expand to contain them, this ensures that it does. requires a block-level element.
</style>
</head><body>
<div id="wrap">
<div id="l">Left contents</div>
<div id="r">Right contents</div>
<div id="footer">&copy; Copyright 2009</div>
</div>

webcool
05-06-2009, 01:49 AM
this is what I wanted to know. Thanks a lot for sharing this information. In will try this and I face any problem I will definitely get back to you.

mark1230
05-11-2009, 08:12 AM
i dont know much about designing part of website ... my brother does have some talent in this field i perform seo work only...

DerekHosewood
06-22-2009, 06:07 AM
i used to use tables back in th day but once i learned some css i would never go back.

I'll try and give a simple and brief example.

<<snip>>

first i wrap the whole content part of the site (ie not the fading background) in a fixed width (800px or whatever) <div>

Then within that i make another <div> for the logo and title, fixed width again.

then you can see its now split into two columns (the flash on the left, the image on the right. This is two <div>s both half width (400px in this case) with the float:left style set.

Then below that we have the same thing again but this time its 4 <div>s with float:left set.

and so on..

hopefully that makes some sense.

Its so much more flexible and less painful than tables when you get the hang of it

jenny
07-07-2009, 02:01 AM
i dont know about designing my be other person can do that