Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Heeelp! Main page align

Heeelp! Main page align

Locked

Views: 1,177

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
13 Sep 2006, 9:19 AM
#1
it_maniac avatar

it_maniac

New Zenner

Join Date:
Sep 2006
Posts:
4
Plugin Contributions:
0

Heeelp! Main page align

I need some help please. I installed my zencart and the main page is align to left when i open it with IE. When i use Opera, is aligned to center. What code do i search for to modify it for looking right? I want to align my site center. http://www.grandium.3x.ro

13 Sep 2006, 9:38 AM
#2
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Heeelp! Main page align

Upgrade Alert How old is your Zen Cart? You're fighting two stylesheets that are causing you woe... you have set some widths at 100% and others at 980px. Compare each stylesheet to the unmodified ones and see what custom changes you made. You'll see what happened.

Your store is in the very beginning stage, perfect for upgrading to v1.3.5 and you can forget all of your width/alignment problems. :yes:

13 Sep 2006, 11:04 AM
#3
it_maniac avatar

it_maniac

New Zenner

Join Date:
Sep 2006
Posts:
4
Plugin Contributions:
0

Re: Heeelp! Main page align

I really don't think so. My version is 1.3.0.2

14 Sep 2006, 12:20 PM
#4
it_maniac avatar

it_maniac

New Zenner

Join Date:
Sep 2006
Posts:
4
Plugin Contributions:
0

Re: Heeelp! Main page align

Please help me! How do I align the main page to center? :lamo:

14 Sep 2006, 1:33 PM
#5
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Heeelp! Main page align

Relax. :P You're going to put things back to stock... make backup stylesheets if in doubt.

In your stylesheet_new;

body {
	margin: auto;
	font-family: verdana, arial, helvetica, sans-serif;
	/*font-size: 62.5%;*/
	color: #000000;
        }

Change the value in red, to 0 (zero)

and find;

#mainWrapper {
	background-color: #ffffff;
	text-align: left;
	width: 960px;
	vertical-align: top;
	margin: auto;
	}

Remove the line in red.

Other than that, I'm afraid I can't help you. IE doesn't provide adequate tools to virtually adjust things. Since I'm so nice though, I used WinMerge and compared your current stylesheets to stock stylesheets from the old Zen Cart demo. More importantly, think over those previous margin values and the corrected ones. :wink2:

If you think your current store is safe as it is, you should consider looking at the release notes for v1.3.5 and seek advice from others with older versions that got hacked... I'm just trying to be helpful and informative.

14 Sep 2006, 5:51 PM
#6
it_maniac avatar

it_maniac

New Zenner

Join Date:
Sep 2006
Posts:
4
Plugin Contributions:
0

Re: Heeelp! Main page align

it's not working. Any other sugestions? pls. pls

15 Sep 2006, 1:28 AM
#7
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Heeelp! Main page align

Odd, how it aligns without showing that ad banner on the top in Firefox and how it shows that ad banner in Explorer, but yet off centers the layout...

I see the settings are rolled back. There's not much else I can do, but offer these guides;

Try this;

http://validator.w3.org/

and this;

http://jigsaw.w3.org/css-validator/

15 Sep 2006, 1:40 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Heeelp! Main page align

I really don't think so. My version is 1.3.0.2
The current version is 1.3.5...if your 1.3.0.2 is not fully patched with the security updates, you might not be as secure as you can be.

Using the 2 stylesheet combination template was NEVER the intended path for a new shop. Search here for "template_default" and read about all the reasons why.

Save yourself grief...upgrade to 1.3.5 now.