Forums / Addon Templates / Need help with a couple of CSS styles on the left sidebar Categories

Need help with a couple of CSS styles on the left sidebar Categories

Views: 2,040

Results 1 to 17 of 17
8 May 2013, 3:53 AM
#1
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Need help with a couple of CSS styles on the left sidebar Categories

How do I get a bullet next to the new "All Products" like the other links have and put the separating line between the two?

And the hover is different compared to the other links, any idea what/where to add to make it have the same hover effect?

http://visionaryscience.net/

Thanks.

8 May 2013, 10:59 AM
#2
stevesh avatar

stevesh

Black Belt

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

Re: Need help with a couple of CSS styles on the left sidebar Categories

First, why do you have/want twoi links to All Products ?

11 May 2013, 2:38 AM
#3
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

I plan on deleting the bottom one, but I wanted to leave it as an example until I get these couple of things resolved.

Any idea? I'm still stuck.

Thanks.

11 May 2013, 3:15 PM
#4
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Need help with a couple of CSS styles on the left sidebar Categories

Might try adding something like this to your stylesheet_betterCategoriesEzInfo.css:

.category-links {
   border-bottom:1px dashed #ccc; 
   display: block; 
   padding-left: 15px; 
   background: url(..images/bc_cat_no_sub.gif) no-repeat; 
   background-position: 5px 8px;}

Hope this helps.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

14 May 2013, 3:28 AM
#5
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

Ok that did work, thank you.

Any idea how to get the arrow next to it like the rest of them?

Why is the Nootropics box bigger than the rest? I've seen this happen in Chrome & in Safari when it wasn't happening in firefox. Any clue what that's from?

Like in Chrome, Featured Products box is HUGE? (I wouldn't be opposed to even doing away with the Featured Products list, but I think the error will just happen to another box.

14 May 2013, 1:00 PM
#6
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Need help with a couple of CSS styles on the left sidebar Categories

Oh, I forgot a slash in the image url. If added, your arrow should be there. Sorry about that.

ORIGINAL:

background: url(..images/bc_cat_no_sub.gif) no-repeat;

MODIFIED:

background: url(../images/bc_cat_no_sub.gif) no-repeat;

Hope this helps.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

15 May 2013, 2:01 AM
#7
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

Yes that did, thank you!

Any idea why the large boxes for Nootropics & Featured Products? (and why it's happening more in Chrome & Safari when it's not in Firefox?) I assume with Featured Products it's a larger box because it's taking up 2 lines of text, but the Nootropics one boggles me?

Thanks again!

26 May 2013, 8:03 AM
#8
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

Still stuck on this last thing, any help is greatly appreciated:

Any idea why the large boxes for Nootropics & Featured Products? (and why it's happening more in Chrome & Safari when it's not in Firefox?) I assume with Featured Products it's a larger box because it's taking up 2 lines of text, but the Nootropics one boggles me?

Thanks.

26 May 2013, 11:22 AM
#9
stevesh avatar

stevesh

Black Belt

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

Re: Need help with a couple of CSS styles on the left sidebar Categories

In the source of your page, the All Products link has a <br /> after it. Find that and remove it and the Nootropics link should be the same as the others.

If you aren't going to use the right sidebox column, I would turn it off globally and make the left column bigger so Featured Products doesn't wrap. Easier to read and looks cleaner.

27 May 2013, 8:28 PM
#10
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

stevesh:

In the source of your page, the All Products link has a <br /> after it. Find that and remove it and the Nootropics link should be the same as the others.

If you aren't going to use the right sidebox column, I would turn it off globally and make the left column bigger so Featured Products doesn't wrap. Easier to read and looks cleaner.

Ok so taking a look at my tpl_categories.php I found 3 <br />

Which one should I edit & how? - Do I just delete the <br /> & leave the two ' ' or delete those as well?

Line 25:

     $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
    if (SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
      $content .= '<a class="category-links" href="' . zen_href_link(FILENAME_PRODUCTS_ALL) . '">' . CATEGORIES_BOX_HEADING_PRODUCTS_ALL . '</a>' . "\n";
    }
	$content .= '<br />' . "\n";

Or line 82:

  if (SHOW_CATEGORIES_BOX_SPECIALS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_NEW == 'true' or SHOW_CATEGORIES_BOX_FEATURED_PRODUCTS == 'true' or SHOW_CATEGORIES_BOX_PRODUCTS_ALL == 'true') {
// display a separator between categories and links
    if (SHOW_CATEGORIES_SEPARATOR_LINK == '1') {
//      $content .= '<br />' . zen_draw_separator('pixel_silver.gif') . '<br />';
//      $content .= '<hr id="catBoxDivider" />' . "\n";
      $content .= '<br style="line-height: 0;" />' . '<hr id="catBoxDivider" />' . '<br style="line-height: 0;" />';
27 May 2013, 11:26 PM
#11
stevesh avatar

stevesh

Black Belt

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

Re: Need help with a couple of CSS styles on the left sidebar Categories

Probably the first one - try it and see. Leave the single quotes.

27 May 2013, 11:40 PM
#12
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

stevesh:

Probably the first one - try it and see. Leave the single quotes.

Ok great that worked for the All Products.

Any idea on the second one of Featured Products? I assume it's adding a double line because it won't fit within the box, but if I open the website in Chrome it seems there is an additional <br /> still

Should I just delete the other two?

Actually just taking another look at the other two & they are commented out, so they shouldn't be affected the Featured Products - any other idea what's causing it?

//      $content .= '<br />' . zen_draw_separator('pixel_silver.gif') . '<br />';
28 May 2013, 12:55 AM
#13
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

I turned off the right sidebar (although I may turn it back on since it was just the Shopping Cart)

I tried extending the entire Categories div which is labeled: element.style

I need to change it from 150px to about 190px so I don't get double lines

But for some reason Firefox Firebug doesn't show where that part of the code is stored like normal - any idea where I can find it in the template?

Thanks.

28 May 2013, 11:30 AM
#14
stevesh avatar

stevesh

Black Belt

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

Re: Need help with a couple of CSS styles on the left sidebar Categories

It looks like you haven't turned off the right sidebox column. The width of the sidebox columns is set in Admin - Configuration - Layout Settings in two different places for each; one for the column width and one for the width of the sideboxes.

28 May 2013, 1:05 PM
#15
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Need help with a couple of CSS styles on the left sidebar Categories

JohnnyScience:

I turned off the right sidebar (although I may turn it back on since it was just the Shopping Cart)

I tried extending the entire Categories div which is labeled: element.style

I need to change it from 150px to about 190px so I don't get double lines

But for some reason Firefox Firebug doesn't show where that part of the code is stored like normal - any idea where I can find it in the template?

Thanks.

If you read the readme.html file included in the template package you will find all of the recommended admin settings for this template, including the recommended 180 px width for sideboxes.

Thanks,

Anne

30 May 2013, 1:50 PM
#16
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Need help with a couple of CSS styles on the left sidebar Categories

Also Johnny, IMO, I think if you looked at the very first line in you stylesheet_module_tabs.css and remove the "width:300px;", and let the tab bar go all the way across the top, it would look a lot better. But, as I said, that's just my opinion.

Teach them to shop and they will shop today;
Teach them to Zen and they will OWN a shop tomorrow!

6 Jun 2013, 5:03 AM
#17
johnnyscience avatar

johnnyscience

Zen Follower

Join Date:
Jan 2013
Posts:
104
Plugin Contributions:
0

Re: Need help with a couple of CSS styles on the left sidebar Categories

stevesh:

It looks like you haven't turned off the right sidebox column. The width of the sidebox columns is set in Admin - Configuration - Layout Settings in two different places for each; one for the column width and one for the width of the sideboxes.

Ahh beautiful, they are all set properly, now thank you!

Any idea why Featured Products still has a double spacing in it inside of Chrome & Safari?

picaflor-azul:

If you read the readme.html file included in the template package you will find all of the recommended admin settings for this template, including the recommended 180 px width for sideboxes.
Thanks,
Anne

Thanks, the readme is definitely thorough!

Get Em Fast:

Also Johnny, IMO, I think if you looked at the very first line in you stylesheet_module_tabs.css and remove the "width:300px;", and let the tab bar go all the way across the top, it would look a lot better. But, as I said, that's just my opinion.

Ok I changed it like you suggested & I do like it, but it looks a little empty, but I guess I will leave it.

Thanks again everyone for the help!