|
|
|
|
Thread title: Multi Column Design |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
09-13-2006, 09:14 PM
|
#1
|
Status: Member
Join date: Aug 2006
Location: Wisconsin
Expertise:
Software:
Posts: 132
|
Multi Column Design
Now, more than ever, multi column design is becoming popular. I don't really know how to efficiently code mutli column. Here are the three types I have experimented with:
- Tables - Horrible thing to do and I never use them.
- Float - Up until recently I was using float but it become really difficult getting the background color to work in both IE and FF because one column is always shorter, exposing the white background.
- Position:Absolute - This is what I am currently trying to use and it is just as hard as float. I can't seem to get anything to align below it because it is absolutely positioned. However, if I want a footer I want it to be fluid and move up and down with each page and not be absolute.
What do you guys use? I am currently having problems using position and getting the footer to work...
http://ppacinc.org/ is the site I am trying to work on. Any help would be greatly appreciated.
|
|
09-13-2006, 09:46 PM
|
#2
|
Status: I love this place
Join date: Jan 2005
Location: The Netherlands
Expertise: Frontend, vBulletin
Software: Coda, Photoshop
Posts: 607
|
Most of the time I use float. If you have a short side column and you want it's background to expand, you should make a container div and give that a background colour or image.
|
|
09-27-2006, 10:13 AM
|
#3
|
Status: Junior Member
Join date: Sep 2006
Location:
Expertise:
Software:
Posts: 27
|
|
|
09-28-2006, 06:21 AM
|
#4
|
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
Posts: 5,572
|
To get backgrounds to "stretch" the full length of the columns you have to use repeating images.
|
|
09-28-2006, 07:32 AM
|
#5
|
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
Posts: 3,440
|
Originally Posted by Julian
To get backgrounds to "stretch" the full length of the columns you have to use repeating images.
|
I think he is failing to clear his floats, thus ending them at the end of content, rather then terminating at the footer.
Correct?
|
|
09-29-2006, 12:44 AM
|
#6
|
Status: Junior Member
Join date: Sep 2006
Location:
Expertise:
Software:
Posts: 28
|
i use float most of the time, and wrap them in a parent div and set the bg of that to the color i need, or if they are different colored boxes, i just set there height to 100% and it fills in the bottom so it doesnt just stop.
|
|
09-29-2006, 12:55 AM
|
#7
|
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
Posts: 3,440
|
Originally Posted by SilverSpike
i use float most of the time, and wrap them in a parent div and set the bg of that to the color i need, or if they are different colored boxes, i just set there height to 100% and it fills in the bottom so it doesnt just stop.
|
Height: 100%; is pretty much useless. You need to clear your floats correctly.
|
|
09-29-2006, 02:32 AM
|
#8
|
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
Posts: 5,200
|
<br clear="all" /> at the end of all your floating elements. It should fix that.
|
|
09-29-2006, 02:44 AM
|
#9
|
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
Posts: 2,694
|
Originally Posted by AndrewR
<br clear="all" /> at the end of all your floating elements. It should fix that.
|
Who tought you
|
|
09-29-2006, 04:42 PM
|
#10
|
Status: Custom User Title
Join date: Apr 2005
Location:
Expertise:
Software:
Posts: 2,297
|
I use the float method. Floating multiple DIVs in a container, and then set a background to the container DIV to make sure that the columns appear to stretch fully to improve asthetics.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|