Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Location
    In the mountains
    Posts
    63
    Plugin Contributions
    0

    Default Why the heck can't I center this thing?

    I have tried to center this every which way but Sunday!
    I want the whole table that everything is in to be centered.

    This is the page:
    http://www.beadedpatterns.com/home/
    Please ignore the content, I'm getting ready to do the re-install,
    I just want to know how to center this page before I move on, because it is driving me crazy.

    I know that it something simple and that I've just missed something stupid like a comma!! maybe!

    Here's the example in html:
    It's like this:
    http://www.uniquebeadedjewelry.com/example1.html

    I want it to be like this:
    http://www.uniquebeadedjewelry.com/example2.html

    You have to have a wide screen to see what I am wanting.
    Thanks
    Dragon

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

    Default Re: Why the heck can't I center this damn thing?

    You have #mainWrapper properties scattered all over
    Code:
    /*wrappers - page or section containers*/
    #mainWrapper {
    	width: 900px;
    	background-color: #000000;
    	float: center;
    	text-align: center;
    	vertical-align: top;
          border: 1px solid #CC99FF;
    	}
    
    #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
    	margin: 0em;
    	padding: 0em;
    	}
    
    #contentMainWrapper {
        background-color: #000000;
    	padding-top: .50em;
          }
    
    #headerWrapper {
          background-color: #000000;
    	margin: 0em;
    	padding: 0em;
          }
    
    #navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
    	margin: auto;
    	}
    but as the last margin call is auto, it should work.

    The problem underlying that is that you have set the body width to 900px also, so there is no room for #mainWrapper to move.
    Remove the
    width: 900px;
    completely from body {}.

  3. #3
    Join Date
    Jun 2008
    Location
    In the mountains
    Posts
    63
    Plugin Contributions
    0

    Default Re: Why the heck can't I center this damn thing?

    When I remove the width: 900px; from the body, the table opens up to the whole page.
    This is not what I am wanting to do.
    I want the main body/table of my page to be 900px.

    So that it looks like a page in the center of your screen.

    So now what!!

    Dragon

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default Re: Why the heck can't I center this damn thing?

    Glenn's suggestion of removing the width call from the body is correct. However, you have so many things mixed between body and the various wrappers that almost anything can happen.
    For instance, the margin: 10% in the body. That would not be needed if something else "interesting" hadn't been done elsewhere.

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

    Default Re: Why the heck can't I center this damn thing?

    You have an extra </div>, possibly the one after <!--eof-header ezpage links-->, which is ending #mainWrapper so that it does not enclose the whole site.

  6. #6
    Join Date
    Jun 2008
    Location
    In the mountains
    Posts
    63
    Plugin Contributions
    0

    Default Re: Why the heck can't I center this damn thing?

    Thanks everyone!! I'm going to start over on my css file.
    Maybe I will do it better this time.

    Dragon

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

    Default Re: Why the heck can't I center this damn thing?

    The problem I mentioned is in your tpl_header.php file. You need to get that correct before the stylesheet can work properly.

 

 

Similar Threads

  1. v150 Why the heck does my dad see the site so differently??
    By WebKat in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 13 Apr 2012, 04:09 PM
  2. v150 What the heck is this "Text Enhance" thing popping up on my site!?
    By WebKat in forum General Questions
    Replies: 4
    Last Post: 3 Mar 2012, 08:36 PM
  3. What the heck is this?
    By rdub in forum General Questions
    Replies: 7
    Last Post: 31 Oct 2011, 05:13 PM
  4. why my website can't display in the center on the MAC's IE ?
    By greenlight in forum General Questions
    Replies: 3
    Last Post: 10 Aug 2009, 12:04 AM

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