SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard
    Join Date
    Feb 2007
    Location
    Southern California
    Posts
    1,388
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Improper way to show full size of jpg?

    I recently used this form to show the full version of a jpg when clicking on its thumbnail:

    <a target="_blank" href="/pictures/2013-fame/1.jpg"><img style="margin: 0.5em; float: left" alt="" src="/pictures/2013-fame/thumb-1.jpg" /></a>

    I was surprised that a window opened to show the full jpg. Is this the "wrong" way to do it? Should I put putting each jpg on a separate html page? This was done in a hurry because I had 33 jpgs on the page to do.
    Steve Husting

  2. #2
    SitePoint Addict
    Join Date
    Apr 2011
    Posts
    265
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    You can use a lightbox script for a nice effect (just look on the net), or let it as it is, it is not a wrong way, but not professional.
    Free: Web Programming Courses HTML, CSS, Flash
    Web Programming: AJAX Course and PHP-MySQL Course video Lessons
    Good JavaScript and jQuery course for beginners

  3. #3
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A brief into

    <a target="_blank" href="/pictures/2013-fame/1.jpg"><img style="margin: 0.5em; float: left" alt="" src="/pictures/2013-fame/thumb-1.jpg" /></a>

    It can be used as it is the most reliable way to do it. The most safer and convinient optimization takes places here only

  4. #4
    SitePoint Wizard
    Join Date
    Feb 2007
    Location
    Southern California
    Posts
    1,388
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It' s not professional-looking. Unfortunately, this is in a CMS field, so I'm not sure I have a lot of options.
    Steve Husting

  5. #5
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    6,055
    Mentioned
    219 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    As MarPlo says, I would use a Lightbox script for this.
    There are plenty available for WordPress if that is what you are using.
    This is the one I use: http://wordpress.org/plugins/wp-jquery-lightbox/


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
  •