Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1380 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

CSS footer with liquid layout

Thread title: CSS footer with liquid layout
Closed Thread    
    Thread tools Search this thread Display Modes  
10-10-2005, 09:57 PM
#1
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old  CSS footer with liquid layout

I've been at this all day.

Since my 3 column layout is liquid (ie. expands to the full width of the browser), I used Absolute positioning for each column. Now I have no idea how to position the footer. Usually, I place the footer using the Margin-top property to keep it at a distance from the columns, but this time the columns are positioned using the Absolute method.

This sounds confusing, does anyone even understand what I'm talking about?


Edited: Here's the link to the page on which i am trying to place a footer: http://www.singhselectronicworld.com/index2.html

Here's the .css file: http://www.singhselectronicworld.com/styles/css1.css


I'm trying to place a footer on that page, that's all.

10-10-2005, 10:18 PM
#2
xZaft is offline xZaft
Status: Member
Join date: Jul 2005
Location: Massachusetts, US
Expertise:
Software:
 
Posts: 428
iTrader: 0 / 0%
 

xZaft is on a distinguished road

  Old

I do, you don't know how you are going to put the footer in, because the other columns would run right through it. Your solution, make the 3 columns in 1 div, and then close the div, after put your footer. May work.

10-10-2005, 11:03 PM
#3
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

If i make all the three columns in 1 div, then that means i need to have them by Relative positioning. But somehow, i am not successful at that.

10-10-2005, 11:12 PM
#4
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

There is a solution (just CSS) which means that so long as your right-column was never the longest of the 3, a footer could be added. Or, if you play around with the HTML (put the right container above the center one) then I can help you fix things.

Cheers,
Salathe

10-11-2005, 04:39 AM
#5
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

Isn't there a website which offers a solution to this? Or maybe a tutorial on how to do 3 column fluid layouts with footer? This seems to be a common problem, right?

10-11-2005, 06:39 AM
#6
Julian is offline Julian
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
 
Posts: 5,572
iTrader: 0 / 0%
 

Julian is on a distinguished road

  Old

10-11-2005, 12:58 PM
#7
Yang is offline Yang
Yang's Avatar
Status: Member
Join date: Jun 2005
Location:
Expertise:
Software:
 
Posts: 460
iTrader: 0 / 0%
 

Yang is on a distinguished road

Send a message via Yahoo to Yang

  Old

Thanks Julian and everyone else.
That tutorial seems confusing, and is very long. I'll read it, but for now i'll use the tables for the 3 columns, like i always do. :S

Thanks again!

10-11-2005, 03:47 PM
#8
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

Code:
#container {
	float: left;
	width: 100%;
}
#left {
	float: left;
	width: 20%;
	margin: 0 2%;
}
#mid {
	float: left;
	width: 54%;
	margin: 0 2%;
}
#right {
	float: left;
	width: 20%;
	margin: 0 2%;
}
#footer {
	clear: left;
	width: 100%;
}
container
--left
--middle
--right
footer

works every time

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed