Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Website is not centered, but to the right of the page.

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

Locked
This thread is locked. New replies are disabled.
16 Jun 2009, 4:47 PM
#1
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #1 by citrustech

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!

16 Jun 2009, 4:49 PM
#2
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #2 by dbltoe

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Jun 2009, 4:56 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #3 by dbltoe

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

Try changing that to <br class="clearboth" />

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Jun 2009, 5:01 PM
#4
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #4 by citrustech

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

16 Jun 2009, 5:05 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #5 by dbltoe

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Jun 2009, 5:13 PM
#6
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #6 by citrustech

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

<!--bof-navigation and shopping cart display-->
	<div id[B]="navMainWrapper">[/B]
		<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>
		[B]<br class="clearboth"/>[/B]
	</div>
<!--eof-navigation and shopping cart display-->

did i do that right?

16 Jun 2009, 5:29 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #7 by dbltoe

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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Jun 2009, 5:37 PM
#8
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #8 by citrustech

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

16 Jun 2009, 5:56 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #9 by dbltoe

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.:blink:

Let's try reloading the file you edited from the original files that came with the template. Then we'll revisit the issue.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Jun 2009, 6:07 PM
#10
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #10 by citrustech

No problem.
Okay, i now have it open.

16 Jun 2009, 7:01 PM
#11
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #11 by citrustech

Am i going to get any more help? :(

17 Jun 2009, 12:33 AM
#12
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #12 by dbltoe

Stylesheet around line 131, change #logoWrapper to height: 95px

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

17 Jun 2009, 3:11 AM
#13
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #13 by citrustech

Hello,
I went into my templates style sheet, and there was no #logoWrapper. So then i went into the default template which is also enabled, and it found logowrapper in there. But there is no height variable in there. So i made one, made it 95px. It did nothing. Should there be a #logowrapper in my templates stylesheet?

Thanks so much for your help so far, your the only one i got to help me though this. I do know that a couple people are having this problem with this template. Thanks!

17 Jun 2009, 3:46 AM
#14
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #14 by dbltoe

includes/templates/tvzen_jellyfish/css/stylesheet_tv.css is the place to change the height from 80 px to 95px

You need to combine stylesheet_tv.css and stylesheet.css. The _tv cancels everything that you do in the main. You could use winmerge to combine the two. MUCHO less confusion.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

17 Jun 2009, 5:16 AM
#15
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #15 by citrustech

Okay, i changed the height from 80 to 95px.
I downloaded winmerge and merged the stylesheet_tv into the stylesheet. I then uploaded the stylesheet back onto the server. But now everything looks very weird on the site :wacko:. Thanks

17 Jun 2009, 5:41 AM
#16
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #16 by dbltoe

Need to add the following at the end of the stylesheet.> #logo a img {

border: none;
}
That should take care of it.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

17 Jun 2009, 5:57 AM
#17
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #17 by citrustech

Whoa, Thanks! That fixed the problem right there. I can't thank you enough. Although, how do i get rid of borders around every image? like if you go to my site, you see thick borders around buttons and stuff. Thanks!

17 Jun 2009, 6:07 AM
#18
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,933
Plugin Contributions:
26

Post #18 by dbltoe

just remove the #logo a from the last inclusion so that it's

img {
border: none;
}

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

17 Jun 2009, 6:10 AM
#19
citrustech avatar

citrustech

New Zenner

Join Date:
Jun 2009
Posts:
17
Plugin Contributions:
0

Post #19 by citrustech

Actaully the thick borders around everythign only show up in internet explorer, not in Google chrome or Firefox. But the only other problem is, is that all the product images and buttons for things show up in just one collum. For example, head to this link to see what i mean. The other images should be 2 per row, and the buttons should not be stacked. Here sthe link:
http://oconnellgallery.com/zencart/index.php?main_page=product_info&cPath=15&products_id=4

Thanks a ton!

EDIT: ok, i got the borders to go away in IE. Thanks