Changeset 2465


Ignore:
Timestamp:
Jul 31, 2008, 11:23:26 PM (16 years ago)
Author:
vdigital
Message:

Feature:837 sample my-thumbnails2.css with a IE7 acceptable version.

Location:
trunk/template-extension/distributed/samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/template-extension/distributed/samples/my-thumbnails2.css

    r2462 r2465  
    11/* $Id$ */
    2 legend.thumbLegend { padding: 0 5px; color: #24919c; font-style:italic; font-size: 7px; }
    3 fieldset.wrap1 { width: 96px; min-width: 96px; padding: 0;
     2.thumbLegend { padding: 0 6px; color: #24919c; font-style:italic; font-size: 7px; }
     3.fld1 { width: 96px; min-width: 96px; padding: 0;
    44margin: 5px; display: inline;}
    5 .wrap2 { display: block; padding: 4px 15px 10px 15px; border: 0;}
    6 a.wrap2:hover { border: 0; background-color: #000; }
    7 img.thumbnail { display: block; margin: 2px auto; }
     5.lap2 { display: block; padding: 4px 15px 10px 15px; border: 0;}
     6.fld1:hover { background-color: #000; }
     7.fld1 a:hover { border:0; }
     8.thumbnail { margin: 2px auto; }
     9/* Advanced hacks for IE 7 */
     10*+html .thumbnail { display: inline; margin: 0 auto; }
     11*+html .lap2 span { position: relative; top: 50%; margin: 0 auto; }
     12*+html .lap2 { display: inline; position: relative; top: 0%; }
     13*+html .fld1 { width: auto; padding: 6px 0 6px 0; margin-top: 0px;}
     14*+html .thumbLegend { font-size: 10px; }
  • trunk/template-extension/distributed/samples/my-thumbnails2.tpl

    r2464 r2465  
    66{foreach from=$thumbnails item=thumbnail}
    77        <li>
    8         <fieldset class="wrap1">
     8        <fieldset class="fld1">
    99                <legend class="thumbLegend">
    1010                {if !empty($thumbnail.ELEMENT_NAME)}{$thumbnail.ELEMENT_NAME}{/if}
    1111                </legend>
    12                 <a href="{$thumbnail.U_IMG_LINK}" class="wrap2">
    13                         <img class="thumbnail" src="{$thumbnail.IMAGE}" alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}" />
     12                <a href="{$thumbnail.U_IMG_LINK}" class="lap2">
     13                        <span><img class="thumbnail" src="{$thumbnail.IMAGE}" alt="{$thumbnail.IMAGE_ALT}" title="{$thumbnail.IMAGE_TITLE}" /></span>
    1414                </a>
    1515  </fieldset>
Note: See TracChangeset for help on using the changeset viewer.