Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2009
    Location
    Slovenia
    Posts
    58
    Plugin Contributions
    0

    Default align site to the center

    Hi there.
    I just buy this template on site www.lux4kids.si
    And I have one problem, site is allways align to the left! I want it to be on the center on diferent resolutions... Nothing works for me...


    Can anybody help me please?!
    tnx
    and site again www.lux4kids.si

  2. #2
    Join Date
    Oct 2009
    Location
    Netherlands - NB
    Posts
    146
    Plugin Contributions
    0

    Default Re: align site to the center

    Quote Originally Posted by Spiritus View Post
    Hi there.
    I just buy this template on site www.lux4kids.si
    And I have one problem, site is allways align to the left! I want it to be on the center on diferent resolutions... Nothing works for me...


    Can anybody help me please?!
    tnx
    and site again www.lux4kids.si
    On top of your stylesheet, include:

    body {
    margin: auto;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    background-color: #fff;
    color: #464646;
    background-image: url(../images/bg_main.gif);
    background-repeat: repeat-x;
    background-position: center top;
    }

    It worked for me

  3. #3
    Join Date
    Apr 2009
    Location
    Slovenia
    Posts
    58
    Plugin Contributions
    0

    Default Re: align site to the center

    Nothing has changed... :)

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: align site to the center

    It's too bad you paid money for that template! It is built with antique methods that eliminate nearly all of Zen Cart's built-in styling possibilities, and uses level after level of anonymous nested tables. It will be very difficult to change from its original appearance.

    The only way to change most anything will be to edit the PHP files that hold the table code and insert HTML attributes, or else add classes and ids to places where they have been removed, so that they can be addressed in the stylesheet.

    The first table inside the body is given a width of 761px, so it sits at the left edge of any page wider than that. The easiest fix is to add a width to the body in your stylesheet.

    In /includes/templates/your_template/css/stylesheet.css, find the
    body {
    rule and add
    width: 761px;
    to it. Since it already has margin: auto; it will center itself in the page and hold the table in the center.

  5. #5
    Join Date
    Apr 2009
    Location
    Slovenia
    Posts
    58
    Plugin Contributions
    0

    Default Re: align site to the center

    yeah now it works.. tnx for help

    ..... I see it wasn't great idea to buy this template. But now I must take it.. :)

    tnx again

 

 

Similar Threads

  1. How can I make the submit button align center?
    By bnamodel in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2009, 09:43 AM
  2. vertical center align
    By pokemon3d in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 12 Jul 2009, 09:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR