TinyPortal

Development => Resources => Topic started by: platinumUWE on May 15, 2008, 11:13:22 PM

Title: how to centre a articles contents
Post by: platinumUWE on May 15, 2008, 11:13:22 PM
i was wondering how would i centre an articles contents so there centred in the article i have a simple image,a frapper member map, and a embed mp3 player.

they are all over to the left side and id like them all centred if thats possible.

regards
plat
Title: Re: how to centre a articles contents
Post by: JPDeni on May 15, 2008, 11:28:40 PM
If this is an html article, view the source code and type in


<center>


at the beginning and


</center>


at the end.

If it's a php article, start your article with


echo '<center>';


and end it with


echo '</center>';

Title: Re: how to centre a articles contents
Post by: Ken. on May 15, 2008, 11:29:45 PM
You can do it with "center" tags;

<center> -your content- </center>



Ya beat me JP!  :up:
Title: Re: how to centre a articles contents
Post by: Ianedres on May 15, 2008, 11:31:40 PM
or
<div align="center"> your content </div>  8)
Title: Re: how to centre a articles contents
Post by: platinumUWE on May 15, 2008, 11:36:36 PM
the windows mdia player is perfect centred just the image and frapper refuse to centre i must be doing something wrong

this need to be centred:
http://i31.tinypic.com/zv4h.jpg

also the frapper map.

sorry to be a pest.
Title: Re: how to centre a articles contents
Post by: platinumUWE on May 15, 2008, 11:46:45 PM
got the map n media player centred what am i doing wrong with the image it will not centre

edit: got it ty so much for your help thankyou !!