Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category Box top margin

Category Box top margin

Locked

Views: 1,432

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
16 Mar 2007, 5:19 AM
#1
trevor4370 avatar

trevor4370

New Zenner

Join Date:
Aug 2005
Posts:
27
Plugin Contributions:
0

Category Box top margin

I think I am in the right place, should be a CSS question. I want my side box catergries to touch (meet) with the header logo (eg margin-top:0px;), but I can not find where to make the changes.

Please have a look at the screeen shot .... can not give a link as it is on local server.

http://www.thingsonline.com.au/cart/problem1.png

Thanks heaps

Trevor

16 Mar 2007, 5:37 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Category Box top margin

As you can not provide a direct look - the answer will also be not as direct - this can be several things and they are all in the stylesheet.css file.

Look for padding and/or margins for sideboxcontainer, the columnone & two that they are contained in and so forth...as you are local, you can change this quickly and view the affect....make a backup of the file first and hack away - you can always replace it with the original.

16 Mar 2007, 6:45 AM
#3
trevor4370 avatar

trevor4370

New Zenner

Join Date:
Aug 2005
Posts:
27
Plugin Contributions:
0

Re: Category Box top margin

OK, I seemed to fix it, but not sure if this will cause any problems ....

In tpl_header.php line 93 .....

<br class="clearBoth" />

Remove this and of course the gap closes .... does anybody know what will be, of if there will be any problems if this is removed? If so, what else can I do.

Thanks

Trevor

16 Mar 2007, 6:57 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Category Box top margin

This is all in the stylesheet.css file

17 Mar 2007, 2:57 AM
#5
trevor4370 avatar

trevor4370

New Zenner

Join Date:
Aug 2005
Posts:
27
Plugin Contributions:
0

Re: Category Box top margin

Not sure what you mean "This is all in the stylesheet.css file".

The "<br> caused the space in <br class="clearBoth" /> ... is there something I am missing? I know the "clearboth" is in the css file but not sure what it does.

Thanks

Trevor

17 Mar 2007, 7:40 AM
#6
kobra avatar

kobra

Black Belt

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

Re: Category Box top margin

Not sure what you mean "This is all in the stylesheet.css file".
I mean exactly what was stated...You asked "I want my side box catergries to touch (meet) with the header logo" and this is best controlled through the css.
Sample Below

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