Center everything in the default template

Discussion in 'HTML & Website Design' started by fuser00, Oct 27, 2006.

  1. #1
    Hi, ive been using the phpld 2.0 in two directories and i want to start other 3 ones because im doing fine with them. I decided to purchase 3 phpld 3.6 because i am phpld webmaster so i think its fair to purchase their excellent product. Ive just purchased one copy to installed it in the domain ive just registered. I want to use the default template and modify it a bit but im having some trouble with one thing.

    The problem is that i want to center everything like you see it here:
    http://searchranger.net/

    But dont know how to do it. I read other threads about centering the footer or the top bar but i just didnt got it.

    Can someone help me?

    Thanks a lot, fuser
     
    fuser00, Oct 27, 2006 IP
  2. geo88

    geo88 Peon

    Messages:
    76
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    well,a easy way to do it would be to apply a CSS rule to the body part.
    The css file would look like this:
    
    body {
       width:90%;/*you can either put percentages or pixel values like this:
       width:600px;*/
       margin:auto;/*this property will create equal margins (left and right) , and this make your page centered.*/
    /*further on you can easily set a color , a background-color  etc, if you know a bit of css */
    }
    
    Code (markup):
    Goodluck !
     
    geo88, Oct 27, 2006 IP
  3. fuser00

    fuser00 Well-Known Member

    Messages:
    1,212
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    150
    #3
    Hi, thanks for the help but its not working :(

    This how i applied your code:

    body {
        background: #4C2303;
    	width:70%;
            font-family: Verdana, Tahoma, Arial, sans-serif;
            font-size: 8pt;
    }
    Code (markup):
    What am i doing wrong?

    Thanks again for the interest

    fuser
     
    fuser00, Oct 27, 2006 IP