Jump to content

3 column layout !


hassank1

Recommended Posts

I've checked some website that contain layouts !!

however why they are kind of complicated ? (am beginner btw)

for example for 3 column layout they use div inside a div inside a div ...

 

check : http://matthewjamestaylor.com/blog/perfect-3-column.htm

 

so why ?

 

and can't I simply for 3 cols layout . use 3 divs ( left then center then right ) then float and center them instead of using many divs inside each other ?!

Link to comment
https://forums.phpfreaks.com/topic/112820-3-column-layout/
Share on other sites

layout, either fixed or liquid, is pretty easy like the the previous post stated. To learn it, just need to find a well explained tutorial, if you are having problems understanding the tutorial you specified, try this one http://css.maxdesign.com.au/index.htm, look for css selectors, and try the tutorial at the bottom, it's shows how to create a liquid 3 column layout, with header and footer.

Link to comment
https://forums.phpfreaks.com/topic/112820-3-column-layout/#findComment-584964
Share on other sites

and can't I simply for 3 cols layout . use 3 divs ( left then center then right ) then float and center them instead of using many divs inside each other ?!

 

you can, float:left column, float:right column, then set center column's margin-left and margin-right to sit in the middle. Remember that you have to specify a width to an element that is using float.

Link to comment
https://forums.phpfreaks.com/topic/112820-3-column-layout/#findComment-584988
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.