Dear All,
I have sample page below. My problem now how can I control the location of the <div id=“header”> and <div id=“footer”>. The problem each time my list of elements differ the footer location will be different. So I want to fix it to a location but not influence by the amount of field I have in different forms. Any idea how to achieve that.
Hi Tomy,
You’re welcome.This has advantage of your code logic design/flow.
Maybe use the full the power of php, and focus on developing the main.php (dymanic content).
Memo: And CSS is good but suggest don’t use too much as browsers varieties; said by our teacher.
My cents only.
I think this means you want the footer to be in the same location regardless of how many elements are in the form above it, but you haven’t said where this “location” is to be.
Where exactly do you want the footer to appear with what I assume will be various amounts of elements in the form above it?
It is up to your choice between html and php modules.
For pure html+css, it may involve some js, which is extreme good for interactive pages.
But js seems not much seo friendly , and the security is another concern too.
For big project,like vb forum script here, php is one of your tools than pure html.
I’m not sure any longer, but isn’t this the same exact question you asked in the CSS forum? How to have the footer remain at the bottom of the page? I’m sure that you get better answers when you restrict your question to just one forum
You are right that it can’t be done with html only, but you confuse me with your PHP suggestion. This can easily be done in CSS and has nothing to do with turning pages into a php for what ever you mean with that
I suggest to visit the CSS Forum and I’m sure you’le find the answer there.
Dear Ked38,
Yes you are getting me there. So by dividing into the foother.php will it remain at the bottom of the page rather than appear just after the submit button is it? Thank you guys.
I must say, I’m not really clear on what you are asking here. The footer will remain in the same position even if you add LIs. It will just get taller.