Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Space between Categories box and logo wrapper

Space between Categories box and logo wrapper

Locked

Views: 1,498

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
14 Apr 2008, 9:47 AM
#1
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Space between Categories box and logo wrapper

How do I get rid of the space, or atleast minimise the space between the Categories box and logo wrapper? I would ideally like to get it inline with the Home bar. I am not the best at explaining myself, so here is a pic. I am a noob in regards to css..

14 Apr 2008, 11:01 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Space between Categories box and logo wrapper

Find in your stylesheet.css

.leftBoxContainer, .rightBoxContainer {
	margin: 0em;
	border: 1px solid #9a9a9a;
	border-bottom: 4px solid #F500B8;
	margin-top: 1.5em;
	}

...and do this to it:-

.leftBoxContainer, .rightBoxContainer {
	margin: 0em;
	border: 1px solid #9a9a9a;
	border-bottom: 4px solid #F500B8;
	/*margin-top: 1.5em;*/
	}
14 Apr 2008, 12:57 PM
#3
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: Space between Categories box and logo wrapper

Thanks, but it is not quite right. Now I have no gaps inbetween the other sideboxes.

14 Apr 2008, 1:17 PM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Space between Categories box and logo wrapper

OK... try this

EXISTING:-

.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: 1px solid #9a9a9a;
border-bottom: 4px solid #F500B8;
margin-top: 1.5em;
}

CHANGE TO

.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: 1px solid #9a9a9a;
border-bottom: 4px solid #F500B8;
margin-bottom: 1.5em;
}

14 Apr 2008, 1:46 PM
#5
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: Space between Categories box and logo wrapper

That did the job! Thank you so very much fairestcape.

Where can I learn about using css better? Do you know of any books etc?

14 Apr 2008, 3:51 PM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Space between Categories box and logo wrapper

W3Schools is a good place to start.

Google for CSS Tutorials, then select the link for W3Schools.

14 Apr 2008, 6:46 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Space between Categories box and logo wrapper

Another focused way you could do this (leaving the .leftBoxContainer, .rightBoxContainer as is) is to add

#categories {margin-top: 0;}

which will only affect the one space you want to remove.

15 Apr 2008, 12:35 AM
#8
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: Space between Categories box and logo wrapper

Thanks gjh42. Which is the best way? Or are they much of a muchness?

Thanks for that fairestcape. Looks like I have some learning to do!!

15 Apr 2008, 5:32 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: Space between Categories box and logo wrapper

They both get the same results, except that the margin-bottom version will make a space below the bottom sidebox that cannot be collapsed. In most circumstances, that won't matter.

Often in CSS there are multiple ways to get the same results, sometimes with subtle differences that can be exploited for precise control.