Fill empty space with div tag

JavaScript and client side scripting.

Moderator: General Moderators

Locked
joe!
Forum Newbie
Posts: 2
Joined: Tue Jul 03, 2012 5:25 pm

Fill empty space with div tag

Post by joe! »

Hi, there. I wondered if there is a way to use javascript to do the calculation on a html page:

the height whole page - height of a 100% wrapper - 30
Then insert that into a div.

Basically I'm making a sticky footer that changes depending on content, it's a search function, how much information is there. I'm not fluet enough in Javascript to do it myself and I've searched all of the internet to find this function :D. And I wondered if a kind soul could help me get on the right way.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Fill empty space with div tag

Post by pickle »

Duplicate. Locking.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Locked