Allignment with echo function

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
zahidprimex
Forum Newbie
Posts: 9
Joined: Tue Jan 29, 2008 7:44 am

Allignment with echo function

Post by zahidprimex »

Hi All
If I use echo function (as example echo WEBSITE ) in a php file The text "Website" will appear on the top of the page with left allignment.How can I show it on the bottom of the page with Middle allignment? Help Please
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Allignment with echo function

Post by aceconcepts »

Try using a div with some styling. i.e. position:absolute; margin-left:auto; margin-right:auto; bottom:0;

Also try using a search engine with something like "show div at bottom" etc...
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Allignment with echo function

Post by pickle »

Layout of a page is handled client-side. So, I'm moving this thread there.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
GuitarheadCA
Forum Newbie
Posts: 20
Joined: Fri Jul 13, 2007 12:59 am

Re: Allignment with echo function

Post by GuitarheadCA »

You have to put the "echo" statement where you would normally put the text. If it's showing up in the top left corner of your page, it's probably at the top of your html code. Put it in a div styled for the center and bottom of the page.
Post Reply