A noobish simple PHP ?

AllStarGamer101

New Member
Messages
502
Reaction score
0
Points
0
Ok, I am trying to do a little PHP, Simple... OK.. I am trying to center my website (can you use <center></center>) or do you have to do something different for it to center the website. Because my website won't center with the html code.
 

Jordan K

[B]tags dont work:([/B]
Messages
1,528
Reaction score
0
Points
0
Are you trying to center your entire website? Because if you are doing so you can't add that to the php file, seeing as the website IS your php file. Anyways you have to add some type of php code to your php file for it to center or you could make a parent html file with the <center>~some type of command to call php site inside html site~</center> work around.

But overall more manageable to do it with a php code. (I don't know this, or maybe I do and just can't remember).
 

oscar.j4l

New Member
Messages
362
Reaction score
0
Points
0
or what you can do is open your index.php or whatever.php, and at the very top add:

HTML:
<center>
<?php
?>
</center>

That will center everything on that page... :)
 

AllStarGamer101

New Member
Messages
502
Reaction score
0
Points
0
oscar.j4l said:
or what you can do is open your index.php or whatever.php, and at the very top add:

HTML:
<center>
<?php
?>
</center>

That will center everything on that page... :)

Thanks for the help.
hsdance.gif
 

Cynical

Active Member
Messages
3,492
Reaction score
0
Points
36
Or if you just want part:
Code:
<?PHP
echo 'This is on the left.<center>This is in the center</center>This is on the left too.';
?>
 
Top