Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help, how to adjust the spacing on the main page

Help, how to adjust the spacing on the main page

Locked

Views: 3,375

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
25 Feb 2007, 11:45 PM
#1
lennypeng avatar

lennypeng

New Zenner

Join Date:
Nov 2004
Posts:
45
Plugin Contributions:
0

Help, how to adjust the spacing on the main page

The spacing on the main page is too wide as shown on the attached picture. Any one knows how to adjust that? Thanks in advance

25 Feb 2007, 11:50 PM
#2
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

In your template folder find the folder titled css.

now open the main css file, stylesheet.css

Under body add the following before the last )

width: 1024px;

or you can set it for 800px if you want it even tighter. But I like bigger type so I feel that 800 is too thin for me. It works great if you're only going to use one side for boxes though.

25 Feb 2007, 11:53 PM
#3
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

WAIT THATS WRONG!!!!

I looked at your thumbnail. width has nothing to do with that. sorry.

I think what you need is margins, or padding. But I'm not sure about that. I'll let you know if I figure it out. I have the opposite problem with some of my product thumbnails. Their practically touching.

26 Feb 2007, 4:56 AM
#4
lennypeng avatar

lennypeng

New Zenner

Join Date:
Nov 2004
Posts:
45
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

birdoasis:

WAIT THATS WRONG!!!!

I looked at your thumbnail. width has nothing to do with that. sorry.

I think what you need is margins, or padding. But I'm not sure about that. I'll let you know if I figure it out. I have the opposite problem with some of my product thumbnails. Their practically touching.

Thank you very much for your help. Please let me know once you have found it, I've spent several hours and still can not find it....

26 Feb 2007, 5:18 AM
#5
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

It would be easier if we had a link to the actual site, but check the setting for this:

.centerBoxHeading {
	margin: .0em;
	background-color: #F0F8FF;
	padding: 0.5em 0.2em;
	}

That might be one of the padding values that needs to be changed.

28 Mar 2007, 8:37 AM
#6
lennypeng avatar

lennypeng

New Zenner

Join Date:
Nov 2004
Posts:
45
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

Tried that but does not work.

31 Mar 2007, 10:16 PM
#7
nomadrip avatar

nomadrip

Zen Follower

Join Date:
Feb 2007
Location:
Calabasas, CA & St. Pete, FL
Posts:
87
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

afo:

It would be easier if we had a link to the actual site, but check the setting for this:

http://www.digizone.co.nz/ (see screen capture above :smile:)

Looks like he fixed half of it on my screen...

1 Apr 2007, 2:01 PM
#8
valerieq1 avatar

valerieq1

New Zenner

Join Date:
Mar 2007
Posts:
5
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

NomadRip:

http://www.digizone.co.nz/ (see screen capture above :smile:)

Looks like he fixed half of it on my screen...

Actually this one is easy...

Go into your tool>define pages editor
Then choose html from the right drop down
Then choose main page from the left drop down

Put your cursor in front of the first letter of the first sentence and hit your backspace button about 6 times...

Then put your cursor after the last letter of the last sentence and hit the delete key about 6 times...

Save

Refresh your store and see if that did the trick...

Zen cart pads those text boxes for some reason... but this worked for me...

:lamo: Good luck!

www.fabulousforless.net
(under construction)

16 Apr 2007, 7:22 AM
#9
lennypeng avatar

lennypeng

New Zenner

Join Date:
Nov 2004
Posts:
45
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

Thanks for the info, but still does not work.

valerieq1:

Actually this one is easy...

Go into your tool>define pages editor
Then choose html from the right drop down
Then choose main page from the left drop down

Put your cursor in front of the first letter of the first sentence and hit your backspace button about 6 times...

Then put your cursor after the last letter of the last sentence and hit the delete key about 6 times...

Save

Refresh your store and see if that did the trick...

Zen cart pads those text boxes for some reason... but this worked for me...

:lamo: Good luck!

www.fabulousforless.net
(under construction)

16 Apr 2007, 7:33 AM
#10
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,183
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

Try this in your override styleshee.css

#indexDefault {margin: 0em;
padding: 0em;
}

#indexDefaultHeading {margin: 0em;
padding: 0em;
}

#navBreadCrumb {margin: 0em;
padding: 0em;
}

Mess around with these setting to achieve the distance you want.
If they are not in your css, them just add them.

Mark,

18 Apr 2007, 5:34 AM
#11
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: Help, how to adjust the spacing on the main page

about half is coming from

<h1 id="indexDefaultHeading"/>

some is coming from .greeting

.greeting {
padding: 0;
margin: 0;
}

clears out a bunch (note: you'll want to put some back on the bottom at least, this is just a demonstration)

your also getting padding from
.centercolumn {
padding: 0;
}
(again, you'll want to put some back at the sides and probably the bottom, just showing where its coming from)