Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Centering All Pages

    Greetings to the list! Sorry for cross-posting but I was
    unable to locate an answer to this question in either sub-forum
    and believe it is appropriate to both.

    I am using version 1.3.8a.

    I am interested in centering all ZC pages in the
    browser window.

    By pages, I refer to content generated and placed within

    <div class="mainWrapper"

    I have placed centering tags before and after this <div container
    but they seem to have no effect.

    Question:

    Is this a

    1.) stylesheet issue, or a
    2.) template customization issue?

    If a stylesheet issue, what method best accomplishes this?

    If a template customization issue, what solution works best in
    this case?

    Thanks!

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

    Default Re: Centering All Pages

    It is a stylesheet issue. Using HTML <center> tags is an antiquated method; for standard template setups, you would add to the #mainWrapper {} rule in your stylesheet

    margin: auto;

    If this doesn't work for you, post a link to see your site live so we can give accurate advice.

  3. #3
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Centering All Pages

    Quote Originally Posted by gjh42 View Post
    It is a stylesheet issue. Using HTML <center> tags is an antiquated method; for standard template setups, you would add to the #mainWrapper {} rule in your stylesheet

    margin: auto;

    If this doesn't work for you, post a link to see your site live so we can give accurate advice.
    GJH,

    Thanks for replying.

    The rules for the mainWrapper <div are set to provide a bordered container that occupies 90% of the window's width. Margins are set within the border to allow for centered tables, headlines, etc.

    My desire is to center everything in the <body, e.g., the mainWrapper <div container.

    Thanks. Can't post a link right now as the site is closed to public access.

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

    Default Re: Centering All Pages

    So, did you add margin: auto; to the #mainWrapper {} rule?

    If you can't even show us the down for maintenance view, post the applicable stylesheet rules as you have them, so we have some idea of how you have set it up.

  5. #5
    Join Date
    Sep 2009
    Posts
    48
    Plugin Contributions
    0

    Default Re: Centering All Pages

    Quote Originally Posted by gjh42 View Post
    So, did you add margin: auto; to the #mainWrapper {} rule?
    Glenn:

    Thanks for your suggestions. margin: auto; when added to the #mainWrapper rules did not solve the problem.

    Turns out there was a second reference to #mainWrapper lower in stylesheet.css that had had margin: 0;, which caused a set of problems all its own.

    All is well now.

    Thanks again.

    Jay

 

 

Similar Threads

  1. Centering Images on Category Pages
    By schapirate in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Jun 2012, 07:21 PM
  2. Centering All Pages
    By Jay Gee in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Nov 2009, 12:24 PM
  3. Centering a couple pages
    By okpgreg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Oct 2008, 01:13 AM
  4. centering ez pages links.......
    By g0d4lm1ty in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Nov 2006, 09:55 AM
  5. Centering All Content
    By alucier in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Jun 2006, 09:22 PM

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