Automatic Resize Poster Image in Datalife Engine

Discussion in 'HTML & Website Design' started by nonestoplinks, May 25, 2010.

  1. #1
    I saw many datalife engine templates who automatic resize the images. which module use in these templates? Thanks
     
    nonestoplinks, May 25, 2010 IP
  2. shichemt

    shichemt Active Member

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    61
    #2
    open style.css or template.css and add at the end:
    #post-img img{max-width: 500px}
    Change the number 500 to what size you want it to be.
    Now Open shortstory.tp and search for:
    {short-story}
    Change it to:
    <span id="post-img">{short-story}</span>
    Now Open fullstory.tpl and search for:
    {full-story}
    Cange it to :
    <span id="post-img">{full-story}</span>

    enjoy ;)
     
    shichemt, Sep 7, 2010 IP
  3. Mike D.

    Mike D. Peon

    Messages:
    12
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Works perfect.

    Is it possible to make images clickable? when user click on image, it should show full size.

    Best Regards
     
    Mike D., Dec 15, 2010 IP