0

I’m trying to create layout using zurb foundation.

Currently, I’ve got very basic one, but one feature blocks me on that very beginning. I’d like to make my <main> section to take at least 100% - header height - footer height, so <footer> would be on the bottom of the screen (or, if there is too much content, then you’d have to scroll down to see footer) I created (as I said before, very basic version) here: http://jsfiddle.net/42VcD/2/

I’m not sure if it’s possible without JS, but I’d much more prefer CSS based solution.

user1105595
  • 591
  • 2
  • 8
  • 20

2 Answers2

0

Here is a sample for what you are looking, however its not done in foundation.

http://codepen.io/tusharbandal/full/lmrgD

Its done using position: absolute to footer.

Importantly you done need js for that.

Even if content increases the footer move down.

Tushar
  • 4,280
  • 5
  • 24
  • 39
  • Hi, thanks – tip with ```position: absolute``` is nice, but still my sidebar+content section isn’t 100% height (and equal in height, regardless on its content height). – user1105595 May 26 '14 at 13:33
  • correct me If am wrong....you want the footer to be at bottom even if content in the page is less? – Tushar May 26 '14 at 13:37
0

you can specify the height for the main section to your requirement.

here is a fiddle with a class(main) for section 100%.link

.main{
height:100%;
}
Sudheer
  • 2,955
  • 2
  • 21
  • 35