TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 438
  • Total: 439
  • @rjen

how to centre a articles contents

Started by platinumUWE, May 15, 2008, 11:13:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

platinumUWE

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

JPDeni

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>';


Ken.

You can do it with "center" tags;

<center> -your content- </center>



Ya beat me JP!  :up:
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

Ianedres

or
<div align="center"> your content </div>  8)

platinumUWE

#4
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.

platinumUWE

#5
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 !!

This website is proudly hosted on Crocweb Cloud Website Hosting.