Thread: stylesheet woes

Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2005
    Location
    Mosquito Coast, Texas
    Posts
    92
    Plugin Contributions
    0

    red flag stylesheet woes

    I have a very customized style sheet and for some reason, the centered content for the New products, Special Products and Featured Products has a strange error. When set to 2 products per column, viewing the page via the Developer tools, it gives a width of 50%, yet it will only display the products in a single column.
    additionally, when set to 3 products per column, it gives a width of 33%, but will only display 2 products per row across.
    I've been thrashing this for going on 3 weeks now and I am totally stumped. I cannot change the width via the style sheet, as it seems to be hard coded somewhere in the cart files. Plus it displays "style" selector before the "class" selector. Any help is appreciated.

    http://www.greenmeadowscosmentics.com/store

    thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: stylesheet woes

    Your link currently is bad???
    Most probably margin & padding issues

    You might find what you need HERE
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: stylesheet woes

    Typo. The link is:

    http://www.greenmeadowscosmetics.com/store/

    I'd guess that your answer is in the link kobra provided.

    Very nice looking site.

  4. #4
    Join Date
    Aug 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: stylesheet woes

    Quote Originally Posted by darkswan View Post
    I have a very customized style sheet and for some reason, the centered content for the New products, Special Products and Featured Products has a strange error. When set to 2 products per column, viewing the page via the Developer tools, it gives a width of 50%, yet it will only display the products in a single column.
    additionally, when set to 3 products per column, it gives a width of 33%, but will only display 2 products per row across.
    I've been thrashing this for going on 3 weeks now and I am totally stumped. I cannot change the width via the style sheet, as it seems to be hard coded somewhere in the cart files. Plus it displays "style" selector before the "class" selector. Any help is appreciated.

    http://www.greenmeadowscosmentics.com/store

    thanks
    yeah i had same problem trying to display 3 items accross - it would only display 2. Seems the code sets a width for each box depending on how many items you set to display, so 3 items sets each box to 33%. you would think that would be fine if total width=100% because 3x33%=99% but I think additonal margins or padding stuff it. so to fix I just added a manual width setting.

    look for file modules/YourTheme/new_products.php

    edit this line:

    $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',

    change to:

    $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . 30 . '%;"',

  5. #5
    Join Date
    Jan 2005
    Location
    Mosquito Coast, Texas
    Posts
    92
    Plugin Contributions
    0

    Default Re: stylesheet woes

    Quote Originally Posted by kobra View Post
    Your link currently is bad???
    Most probably margin & padding issues

    You might find what you need HERE

    that worked perfectly, thanks!
    I think I will have hair left after all.

 

 

Similar Threads

  1. Moving woes
    By Nipple in forum General Questions
    Replies: 21
    Last Post: 12 May 2008, 08:06 PM
  2. FedEx woes
    By Namtaru in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 10 May 2008, 11:25 PM
  3. GoDaddy Woes
    By wordsdeeds in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 23 Sep 2007, 03:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg