+ Reply to Thread
Results 1 to 5 of 5

Thread: A noobish simple PHP ?

  1. #1
    AllStarGamer101 is offline x10 Lieutenant AllStarGamer101 is an unknown quantity at this point
    Join Date
    Nov 2005
    Posts
    251

    A noobish simple PHP ?

    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.

  2. #2
    Jordan K is offline [B]tags dont work:([/B] Jordan K is an unknown quantity at this point
    Join Date
    May 2005
    Location
    Hamilton, Ontario, Canada
    Posts
    764

    Re: A noobish simple PHP ?

    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).
    adcode // ToS // x10Free | x10Paid Hosting
    ------------------------------------------

  3. #3
    oscar.j4l is offline x10 Sophmore oscar.j4l is an unknown quantity at this point
    Join Date
    Jan 2005
    Location
    Oxnard, CA.
    Posts
    181

    Re: A noobish simple PHP ?

    or what you can do is open your index.php or whatever.php, and at the very top add:

    HTML Code:
    <center>
    <?php
    ?>
    </center>
    That will center everything on that page...

  4. #4
    AllStarGamer101 is offline x10 Lieutenant AllStarGamer101 is an unknown quantity at this point
    Join Date
    Nov 2005
    Posts
    251

    Re: A noobish simple PHP ?

    Quote Originally Posted by oscar.j4l
    or what you can do is open your index.php or whatever.php, and at the very top add:

    HTML Code:
    <center>
    <?php
    ?>
    </center>
    That will center everything on that page...
    Thanks for the help.

  5. #5
    Cynical's Avatar
    Cynical is offline Lord Of The Keys Cynical is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Massachusetts, USA
    Posts
    1,746

    Re: A noobish simple PHP ?

    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.';
    ?>
    Seven: This rule is so underrated, keep your family and business completely separated.

+ Reply to Thread

Similar Threads

  1. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  2. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  3. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM
  4. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  5. [OFFERING] Simple Php programming
    By Flamer46 in forum The Marketplace
    Replies: 1
    Last Post: 09-15-2005, 09:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers