You are here: Re: Centering everything on a page with PHP (or HTML) « All PHP « IT news, forums, messages
Re: Centering everything on a page with PHP (or HTML)

Posted by Arjen on 02/02/07 11:10

Gerry schreef:
> I have several images on a webpage and want to use a single command to force
> all the images and text to be centred on the page. Is this possible?
> Thanks a lot.
>
> Gerry M

Use css for the styles (google if you dont know how)

Then create the button
<a href = "thispage.php?style=center">click here to center</a>

and thephp code
$style = isset($_GET['style'])?$_GET['style']:'default';

echo '<div class="'.$style.'">your text</div>";
echo '<img class="'.$style.'" src="image.gif"/>";

etc

--
Arjen
http://www.hondenpage.com - Mijn site over honden

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация