Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default list-style-image to put ICON_IMAGE_TINYCART on the left of order history list item

    Howdy.

    In the default CSS and template, it looks like the bitty shopping cart image goes at the end of the listing, instead of taking the place of the bullet. I've configured the CSS to use the shopping cart instead of a bullet but I'm having a HECK of a time trying to get the list positioned properly. There's too much white space to the top, left, and right.

    Here's a screen shot, cuz you can't see how it looks unless you place orders, and this is my test shop anyway. Getting ready for the big update.

    Oh, it looks about the same in FF and IE.



    I've really tried to muscle the CSS (looks ridiculous) but I can't figure out what is overriding it all. Yes, I use the FireFox CSS plugin tool, it totally rocks. But I still can't figure out this particular layout problem.

    I've tried everything that has occurred to me, in the order of "most likely" to "what the heck path is the inheritance taking on this!?"

    Code:
    /* * * Modified, see below. * * */
    /*.orderHistList {
    	margin: 1em;
    	padding: 0.2em 0em;
    	} */
    #orderhistoryContent  { margin:0; padding:0; } 
    .orderHistList sideBoxContent ul {margin:0; padding:0}
    .orderHistList li {
    	list-style-image: url(../images/icons/cart.gif); 
            margin-left:0; padding-left:0;
    }
    I stuck in that .sideBoxContent there bec I thought it was applying its padding to .orderHistList, so I moved all of these definitions below .sideBoxContent, but, still, not working. Oh yes, I tried #orderhistoryContent sideBoxContent too.

    Would looove to hear some suggestions.

    Oh yeah, [MY CUSTOM TEMPLATE]/sideboxes/tpl_order_history.php looks like this (I just carved out the part that places the image):
    Code:
      $content = "";
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
      $content .= '<ul class="orderHistList">' . "\n" ;
    
      for ($i=1; $i<=sizeof($customer_orders); $i++) {
    
            $content .= '<li><a href="' . zen_href_link(zen_get_info_page($customer_orders[$i]['id']), 
            'products_id=' . $customer_orders[$i]['id']) . '">' . $customer_orders[$i]['name'] . '</a></li>' . "\n" ;
      }
      $content .= '</ul>' . "\n" ;
      $content .= '</div>';
    Last edited by dbrewster; 2 Nov 2006 at 11:18 PM.

  2. #2
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: list-style-image to put ICON_IMAGE_TINYCART on the left of order history list ite

    In case anyone else wants to use this idea, here's how I solved it. However, FF1.8 and IE7.0 are still not fully in agreement on handling padding and margin for lists.

    Code:
    #orderhistoryContent  { margin:-0.5em 0; padding:0; } 
    .orderHistList sideBoxContent ul {margin:0; padding:0}
    .orderHistList li {
    	list-style-image: url(../images/icons/cart.gif); 
            margin:0 0.2em 0 -1em; padding:0;
    }
    ---Diana

  3. #3
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: list-style-image to put ICON_IMAGE_TINYCART on the left of order history list ite

    in FireFox 1.8


    in IE7

 

 

Similar Threads

  1. How can I change the product list style?
    By waterlin in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 20 Mar 2009, 10:07 AM
  2. Item number on order, invoice & packing list
    By Tatay in forum Managing Customers and Orders
    Replies: 3
    Last Post: 12 Sep 2008, 06:04 PM
  3. how do I put an image into the left column?
    By gaukler in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 3 Mar 2008, 12:14 PM
  4. How to put an image into the left column?
    By gaukler in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Mar 2008, 08:05 AM
  5. Replies: 0
    Last Post: 21 Nov 2006, 04:15 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR