Nicola Siotto
asked on
Center <DIV> with absolute
I have two separate parties, one is a PHP contact form that in case of error or no input, it shows an error on send on the next page. But the PHP page includes a header. I can center the header which is 900px height and this way the error code appears at the end while I would like to appear it in the middle of the page. How to go?
Thanks for any tip.
Thanks for any tip.
ASKER
No sorry, this is not what I need. I know how to center <DIV>. The issue is that this header is part of a PHP header inclusion and therefore the variable text then is pushed at the end of the page while I need it in the middle, although it will be only after all DIV's.
I believe I found a solution by utilizing DIV also in the PHP variables, but was seeking if there were some more simplier solutions.
I believe I found a solution by utilizing DIV also in the PHP variables, but was seeking if there were some more simplier solutions.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Open in new window