Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Jun 2009
    Posts
    17
    Plugin Contributions
    0

    Default Website is not centered, but to the right of the page.

    Hello everyone,
    My website for some odd reason shows up to the right. Not the whole site, just the body. But the weird thing is, in IE8 Compatability mode, the website shows up fine. But if i turn compatability mode off, or use another browser such as Google Chrome, the body is to the right of the page. Here's the link to my site: oconnellgallery.com/zencart (it's not yet finished).
    So is this a CSS issue, template issue...??? I don't know what it is, or what file to edit to change this. Thanks so much for your help guys!

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

    Default Re: Website is not centered, but to the right of the page.


    Didn't catch the URL -- I'll take a look

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

    Default Re: Website is not centered, but to the right of the page.

    inside your navMainWrapper, you have <div class="clearboth"></div>.

    Try changing that to <br class="clearboth" />
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  4. #4
    Join Date
    Jun 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Website is not centered, but to the right of the page.

    Where to I find that file to edit? Is it the stylesheet in the CSS folder?

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

    Default Re: Website is not centered, but to the right of the page.

    Using the developers tool kit, under the tools menu in the admin, should find the file for you if you enter
    <div class="clearboth"
    in the search.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  6. #6
    Join Date
    Jun 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Website is not centered, but to the right of the page.

    Ok, so i changed it, but it seems i am still having the problem.

    Code:
    <!--bof-navigation and shopping cart display-->
    	<div id="navMainWrapper">
    		<div id="cart"><? echo $_SESSION['cart']->count_contents();?> items in cart</div>
    		
    		<div id="navMain">
    			<ul class="back">
    			<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a> <span>|</span></li>
    		<?php if ($_SESSION['customer_id']) { ?>
    			<li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a> <span>|</span></li>
    			<li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> <span>|</span></li>
    		<?php
    			  } else {
    				if (STORE_STATUS == '0') {
    		?>
    			<li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    		<?php } } ?>
    		
    		<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    			 <li>|</li> <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li> |
    			<li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    		<?php }?>
    		</ul>
    		</div>
    		<br class="clearboth"/>
    	</div>
    <!--eof-navigation and shopping cart display-->
    did i do that right?

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

    Default Re: Website is not centered, but to the right of the page.

    an example is on line 127 of your source. should have a space in front of the slash
    <br class="clearboth" />
    Also, make sure you don't have extra code in there. I see an asterisk at the beginning and end in your post. Perhaps you did that to highlight. I don't see it in the source.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  8. #8
    Join Date
    Jun 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Website is not centered, but to the right of the page.

    Thanks for your help so far.
    I added the space in, but still not working.

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

    Default Re: Website is not centered, but to the right of the page.

    I need to apologize. Seems today I'm trying to spin too many plates at once. I didn't look at your template like I should have. It is put together different from the norm which is not bad in itself, but bad when I don't open my eyes far enough.

    Let's try reloading the file you edited from the original files that came with the template. Then we'll revisit the issue.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  10. #10
    Join Date
    Jun 2009
    Posts
    17
    Plugin Contributions
    0

    Default Re: Website is not centered, but to the right of the page.

    No problem.
    Okay, i now have it open.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Footer text is centered, but not centered in the footer block
    By brush4hire in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 May 2012, 03:17 PM
  2. Attributes from 1 to 180 but not coming out in the right order.
    By dandandanpie in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Dec 2011, 06:42 PM
  3. Replies: 8
    Last Post: 26 Jul 2011, 12:06 AM
  4. Centered Logo in Stylesheet, but still NOT centered
    By LilleyPadGifts in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Feb 2009, 11:05 PM
  5. I want product listing images centered, but the other two columns left-justified?
    By tlyczko in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Oct 2008, 04:51 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