Forums / Addon Sideboxes / SideBoxes / Categories

SideBoxes / Categories

Views: 1,976

Results 1 to 11 of 11
10 Dec 2011, 3:28 AM
#1
anhcreations avatar

anhcreations

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

SideBoxes / Categories

On my website at https://www.anhcreations.com running latest version. You will notice my categories sidebox has the purple header? How do i add that to all side boxes? I have this template but cant figure it out?

10 Dec 2011, 4:30 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: SideBoxes / Categories

You have stylesheet rules for .category-sidebox-header-left {} and h3.category_sidebox_header_right {} which give the parts of the image and other styling. This styling should be applied to generic selectors, not specific ones. Style these:

.sidebox-header-left {}
.leftBoxHeading {}

and similar rules for right sideboxes.

10 Dec 2011, 8:32 AM
#3
anhcreations avatar

anhcreations

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

Re: SideBoxes / Categories

I havent messed with style sheets much. Im not one that made the template here is the snippet of the section your talking about just confused what is leading what right here.

/sideboxes/
.columnLeft {}

h3.leftBoxHeading, h3.rightBoxHeading, #manufacturersHeading label, #manufacturersHeading label {
color: #000;
text-align: left;
}
#manufacturersHeading, #currenciesHeading, #musicgenresHeading, #recordcompaniesHeading, #searchHeading, #search-headerHeading {
color: #000;
}
h3.leftBoxHeading a,
h3.rightBoxHeading a{
font-size: 0.8em;
color: #000;
text-align: left;
}

.leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
margin: 0em;
background-color: #abbbd3;
padding: 0.3em 0.2em;
}

.leftBoxContainer, .rightBoxContainer {
margin: 0em;
border: none;
margin: 0 0 1.5em 0;
}
.sidebox-header-left, .centerBoxWrapper{
background: url("../images/left_sb_bg.gif") no-repeat top left;
padding: 0 0 0 4px;
}
.sidebox-header-left{
height: 23px;
}
.category_sidebox_header_left{
background: url("../images/left_c_sb_bg.gif") no-repeat top left;
padding: 0 0 0 4px;
height: 23px;
}
.sidebox-header-left h3, .centerBoxWrapper h2 {
background: url("../images/right_sb_bg.gif") no-repeat top right;
}
h3.category_sidebox_header_right{
background: url("../images/right_c_sb_bg.gif") no-repeat top right;
}
.sidebox-header-left h3, .centerBoxWrapper h2, h3.category_sidebox_header_right, .sidebox-header-left label, .sidebox-header-right label{
line-height: 1.917em;
padding: 0 0 0 2px;
}
h3#categoriesHeading{
color: #fff;
}
.sideBoxContent {
background-color: #ffffff;
padding: 0.4em;
}

h3.leftBoxHeading a:hover, h3.rightBoxHeading a:hover {
color: #000;
text-decoration: none;
}

.rightBoxHeading a:visited, .leftBoxHeading a:visited, .centerBoxHeading a:visited {
color: #000;
}

.centeredContent, TH, #cartEmptyText, #cartBoxGVButton, #cartBoxEmpty, #cartBoxVoucherBalance, #navCatTabsWrapper, #navEZPageNextPrev, #bannerOne, #bannerTwo, #bannerThree, #bannerFour, #bannerFive, #bannerSix, #siteinfoLegal, #siteinfoCredits, #siteinfoStatus, #siteinfoIP, .center, .cartRemoveItemDisplay, .cartQuantityUpdate, .cartQuantity, .cartTotalsDisplay, #cartBoxGVBalance, .leftBoxHeading, .centerBoxHeading,.rightBoxHeading, .productListing-data, .accountQuantityDisplay, .ratingRow, LABEL#textAreaReviews, #productMainImage, #reviewsInfoDefaultProductImage, #productReviewsDefaultProductImage, #reviewWriteMainImage, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew, .gvBal, .attribImg {
text-align: center;
}
.sideBoxContentItem{
padding: 0 0 15px 0;
}
#bestsellers .wrapper {
margin: 0em 0em 0em 1.5em;
}

#bestsellers ol {
padding: 0;
margin-left: 1.1em;
}

#bestsellers li {
padding: 0;
margin: 0.3em 0em 0.3em 0em;
}

#bannerboxHeading {
background-color: #0000CC;
}

#upProductsHeading {
text-align: left;
}

#upDateHeading {
text-align: right;
}

11 Dec 2011, 5:28 AM
#5
anhcreations avatar

anhcreations

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

Re: SideBoxes / Categories

Anyone have suggestions it is doing it on the following pages now..

Featured Products
Specials Page
Contest Page

11 Dec 2011, 8:30 AM
#6
0range98 avatar

0range98

New Zenner

Join Date:
Nov 2011
Location:
UK
Posts:
6
Plugin Contributions:
0

Re: SideBoxes / Categories

I know it's not related to your question but do you really need the music playing on your site?

11 Dec 2011, 1:45 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: SideBoxes / Categories

I'd like to help, but I can't stay on your site long enough to check things out, thanks to that awful noise.

12 Dec 2011, 3:02 AM
#8
anhcreations avatar

anhcreations

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

Re: SideBoxes / Categories

Music was supposed to disabled that was for testing. I appoligize for that guys. Main thing is the pushing it all out of alignment. I haven't changed anything and just all of sudden started this?

12 Dec 2011, 3:45 PM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: SideBoxes / Categories

The left column width is set in admin, and apparently the way it is output is not behaving as desired. View source shows

<td id="navColumnOne" class="columnLeft" style="width: 150"> but when I change it in Firebug to <td id="navColumnOne" class="columnLeft" style="width: 150px"> it goes to the proper width.

Change your setting in Configuration > Layout Settings > Column Width Left - Global to 150px.

Undefined table cell widths default to fitting comfortably, and if the main column content is not wide enough to occupy all but 150px, it will only take as much as it needs.
CSS style rules require explicit units on nonzero dimensions, whereas old HTML behavior defaults to pixels. (Thus the style="width: 150" is undefined.)

<td id="navColumnOne" class="columnLeft" width="150"> would have worked.
12 Dec 2011, 9:25 PM
#10
anhcreations avatar

anhcreations

New Zenner

Join Date:
Dec 2011
Posts:
7
Plugin Contributions:
0

Re: SideBoxes / Categories

Well i noticed i don't have PX at the end of them i added that to the end and that worked. Another question is what is the difference between :

Column Width - Left Boxes
Column Width - Right Boxes
Column Width - Right
Column Width - Left

Should these all be set to the same size?
Also now that i added the PX to the end i notice the headers are actually gray thats funny.

Now i just have to figure out how to fix the purple header of each other box to match category box.

12 Dec 2011, 9:38 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: SideBoxes / Categories

The left/right boxes width applies to the individual sideboxes, while the column width applies to the column as a whole. If you have no padding or margins in the columns and sideboxes, you can use the same dimensions. If you do have padding/margins, you should ideally set the widths to account for them (but you will generally get consistent results even if you don't).
If you have 2px padding in the columns and the widths are set the same, the columns will actually display 4px wider than the boxes which will be at the set width.

The cleanest thing would be to set column widths only and let the boxes automatically fill them neatly.

The sidebox header bg fix is what I told you in post 2.