Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    side bar in PHP wrong side of my page

    I have made a set of files up using PHP & CSS to run and maintain my basic PHP site on my pages I ussed this

    <body>

    <div id="wrapper">

    <?php include('includes/header.php'); ?>
    <br><br>
    <?php include('includes/nav.php'); ?>


    <div id="content">

    and so on,
    then closing out with


    </div> <!-- end #content -->

    <?php include('includes/sidebar.php'); ?>
    <BR><BR>
    <?php include('includes/footer.php'); ?>

    </div> <!-- End #wrapper -->

    of all the normal </body and stuff is in there just not this post

    anyone got any idea
    first: why the side bar goes to the right,
    second: how to make it appear on the left of my page cause it needs to be left

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,020
    Thanks
    15
    Thanked 239 Times in 239 Posts
    It's very likely the order in which you have put the includes.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.


    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.

  • Users who have thanked DrDOS for this post:

    mke2013 (07-13-2013)

  • #3
    New Coder
    Join Date
    Sep 2011
    Posts
    63
    Thanks
    0
    Thanked 7 Times in 7 Posts
    Probably not a problem with the include but the CSS of the side bar. Is everything in place if you insert the html directly?

  • Users who have thanked davidjones1990 for this post:

    mke2013 (07-13-2013)

  • #4
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    It would be better to just take the final code (from the browser->view source) and post it in the HTML section
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION

  • #5
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts
    i thought of the CSS file but that's global for a start not page dependent,
    I tried changing the order and place of the includes I even gave it a hopeless go using <div align=" ">
    the last attempt just gave the side bar a margine on the right

  • #6
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    That may be true, however, if you don't post the relevant code, we can't give an answer.
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •