| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jan 2006
Location: London
Posts: 36
|
CSS Positioning
Hi guys, Noticed that there are quite a few different threads on positioning, but mine is quite specific so I hope you don't mind if I post a thread. Basically, I want a three column layout for my site - with a larger central column. I have managed to do this so far - the banner is in a div which stays central. However, I can't seen to work out how I would code the three main content boxes - what I've got so far is pretty messy, and I'd really appreciate any help. It only works on my size screen, and won't work on smaller resolutions. Having just moved over from tables to CSS, and being 17 years of age, I think it's time I start to learn something different if I want my Web Designing to become anything other than a hobby in the future. Code:
HTML Code:
Thanks a lot |
|
|
|
|
|
#2 (permalink) |
|
who the fuck am i?
|
example thats just one but there are plenty if you do a search on google: more examples all depend on whether youre using absolute positioning, fixed width, fluidlayout etc. Make up your mind as to which youre gunning for and stick to it |
|
|
|
#4 (permalink) |
|
Registered User
Join Date: Jan 2006
Location: London
Posts: 36
|
Thanks for the help so far - I don't want a fluid layout, though. So far all I have is this, the small content box I want centralised, with two columns either side, with a width of 160px each. I know the middle box won't centralise (unless you have the same resolution as me). Any help would be appreciated. Edit: Um it seems to be totally broken in Firefox |
|
|
|
#5 (permalink) | |
|
dt immigrant
|
First off, try and start without filling the images, just a simple colored layout. Don't use margins to align things, just use floats. You haven't added the missing left and right columns in your source, but this should do the trick, once you add them. Quote:
Code for Firefox, then hack fo IE. At this stage, try and get the elements to fall into place. Like so http://randomcolors.com/uploads/pauravi/ |
|
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Jan 2006
Location: London
Posts: 36
|
Thanks a lot - just what I needed. I've had a look around and quite a bit of experimentation with the code but I can't shift that middle box into the centre between the two side divs. Any ideas? Edit: Updated Site |
|
![]() |