Thread: zen_image align

Results 1 to 3 of 3

Threaded View

  1. #3
    Join Date
    Dec 2006
    Posts
    53
    Plugin Contributions
    0

    Default Re: zen_image align

    Thanks Kobra. That's what I had to do. Just needed to know I wasn't missing something.

    For those who are wondering, here is the CSS I am using and the lines of code I hacked.

    In tpl_shopping_cart.php

    Code:
     if (($_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            $content .= '<div class="cartNewItem">';
          } else {
            $content .= '<div class="cartOldItem">';
          }
    
    $content .= zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT) . '</div><div class="cartOldItemtext">&nbsp;You have: <strong>' . $products[$i]['quantity'] . '</strong><br /><a href="' . zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']) .'">'. $products[$i]['name'].'</a></div></li><br />' . "\n";
    and the CSS

    Code:
    .cartNewItem {
        float:left;
        color: #000000;
        margin-right: 3px;
        position: relative; /*do not remove-fixes stupid IEbug*/
        }
    
    .cartOldItem {
        vertical-align:middle;
        float:left;
        color: #000000;
        margin-right: 3px;
        position: relative;   /*do not remove-fixes stupid IEbug*/
        }
        
    .cartOldItemtext {
        vertical-align:middle;
        font-size:.7em;
        text-align:center;
        color: #000000;
        position: relative;   /*do not remove-fixes stupid IEbug*/
        }
    Hope this helps others figure it out.

    PS: You can see it working here http://tinyurl.com/34lg7l. You only need to buy something. ha ha.
    Last edited by Kansai_mike; 10 Mar 2007 at 10:24 AM. Reason: Added my URL

 

 

Similar Threads

  1. v153 zen_image() and online documentation
    By jerrygarciuh in forum Basic Configuration
    Replies: 1
    Last Post: 30 Jul 2014, 11:09 PM
  2. zen_image vs zen_image_OLD
    By dw08gm in forum General Questions
    Replies: 2
    Last Post: 31 Mar 2013, 04:15 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