Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Trying to center the Home | Log In | Shopping Cart links

Trying to center the Home | Log In | Shopping Cart links

Locked

Views: 2,857

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
31 Mar 2008, 10:06 PM
#1
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Trying to center the Home | Log In | Shopping Cart links

Hi,

As stated, I'm trying to center the top links, such as Home | Log In | Shopping Cart etc., but it keeps aligning to the right. You can see it here:

http://www.infothreads.com

Also, ideally I'd like to move the EZpages links to the very bottom, just above the footer text, but thus far no luck. I'd like to think I'm pretty good with CSS, but dang, I'm having a tough time here.

Any help would be mighty appreciated. Thanks.

31 Mar 2008, 10:53 PM
#2
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: Trying to center the Home | Log In | Shopping Cart links

Okay, I got the top links to center properly, however, I'm still working on getting the EZpages' links for the footer to vertically align to the bottom, just above the footer text. Any help here would be great.

Thanks.

31 Mar 2008, 11:19 PM
#3
jhouse avatar

jhouse

Zen Follower

Join Date:
Dec 2006
Posts:
132
Plugin Contributions:
0

Re: Trying to center the Home | Log In | Shopping Cart links

I just got the EZpages to vertically align to the bottom now, so I'm all good.

6 Jul 2008, 3:44 AM
#4
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Trying to center the Home | Log In | Shopping Cart links

JHouse:

Okay, I got the top links to center properly, however, I'm still working on getting the EZpages' links for the footer to vertically align to the bottom, just above the footer text. Any help here would be great.

Thanks.

Would you mind sharing how you were able to get the top home/login links to align center. I've tried everything and been on the boards almost 3 hours trying to find an answer.

I am NOT php savvy (and don't know anything about php syntax) so if it's a tpl_header.php modification if you could include an example that would be wonderful.

Thanks and your site looks fabulous, btw!

Zencart ROCKS!

6 Jul 2008, 4:29 AM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Trying to center the Home | Log In | Shopping Cart links

This is doing it for the OP's site:

#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
	font-weight: bold;
	color: #ffffff;
	text-align: center;
	}
6 Jul 2008, 7:34 AM
#6
craft_magick avatar

craft_magick

Zen Follower

Join Date:
Nov 2007
Posts:
166
Plugin Contributions:
0

Re: Trying to center the Home | Log In | Shopping Cart links

Craft Magick:

Would you mind sharing how you were able to get the top home/login links to align center. I've tried everything and been on the boards almost 3 hours trying to find an answer.

I am NOT php savvy (and don't know anything about php syntax) so if it's a tpl_header.php modification if you could include an example that would be wonderful.

Thanks and your site looks fabulous, btw!

Zencart ROCKS!

I found out how to move the home/login nav links to below the logo.

Refer to post #4 AND #5 in the following thread for instructions.

http://www.zen-cart.com/forum/showthread.php?p=580187#post580187

Just thought I'd post the solution here, too, since I posted the question and was able to find the answer. Hope this helps anyone else searching for this answer.

Zencart ROCKS!

19 Jul 2008, 7:33 PM
#7
mr_chetanladdha avatar

mr_chetanladdha

New Zenner

Join Date:
Jul 2008
Posts:
84
Plugin Contributions:
0

Re: Trying to center the Home | Log In | Shopping Cart links

check ur tpl_header.php file code
Maybe u get something there

13 Aug 2008, 1:35 PM
#8
vivaraquel avatar

vivaraquel

Zen Follower

Join Date:
Sep 2004
Location:
Australia
Posts:
305
Plugin Contributions:
0

Re: Trying to center the Home | Log In | Shopping Cart links

gjh42:

This is doing it for the OP's site:

#navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
font-weight: bold;
color: #ffffff;
text-align: center;
}


Hi, I have been trying to find where to change the font color for the links in the header as above. I changed the color: #000000; but it's still white.

I understand that this bit of code is to move the links to the center but I thought as it is the same bit I need to edit it may work. I'll keep searching for the answer but if someone already knows and can let me know that would be great.

Thank you.
14 Aug 2008, 6:30 AM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Trying to center the Home | Log In | Shopping Cart links

The color property in the above rule is overridden by the link color property defined elsewhere. Adding this to your stylesheet should do the trick:```
#navMainWrapper a, #navSuppWrapper a, #navCatTabsWrapper a {
color: #000000;
}