![]() |
Three Column Layout
1 Attachment(s)
I can't get my three columns col1 col2 col3 to appear. I'm trying to make my columns look like the photo below. Can anyone help me achieve this?
HTML Code:
<!DOCTYPE HTML>Code:
|
Hello andynov123,
You will need to use floats to place those columns beside each other. See a simple float tutorial here. Try it like this once - Code:
<!DOCTYPE HTML> |
Try this
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
Hi
I'm having two problems with my code. 1. I can't get three columns to move up and be centered 2. I made the columns bigger, and now they don't line up on the sides of column 2 Here's my code Code:
<!DOCTYPE HTML> |
bump.
|
Quote:
Code:
#wrap {Quote:
Like this - Code:
#col2 { |
If I comment out #wrap's margin and padding, the header completely disappears and the bottom portion moves up with the columns. I want bottom part to stay where it is rather than go up with the columns.
also I can't get the margins on col2 right. If I increase the margins from 203px to higher, col2 gets smaller and the cols don't match up anymore Code:
<!DOCTYPE HTML> |
Quote:
Try changing the background color on the body to illustrate, like this - Code:
html, body {Quote:
Code:
#wrap {It's kind of looking like you want a full height layout, where the footer stays on the bottom even when there is not enough content to push it down there. Have a look at these full height layout demos. Quote:
Code:
#col2 {Code:
#col2 {The advantage of not specfying a width on column 2 is the margin make room for the left/right columns while column 2 takes all available room left. Hope that all makes sense... ;) |
| All times are GMT +1. The time now is 01:42 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.