Grow your CSS skills. Land your dream job.

How To Enlarge Image In New Window

  • # March 1, 2010 at 4:56 pm

    I just did a quick search for my question and couldn’t find anything directly on point.

    I’m still very new to HTML and was wondering if someone could tell me how I could add a picture to my website and set the code so that if I click on it, it enlarges the picture in a new window.

    I’m going to be adding around 600+ pics to my website so I was also wondering if there’s a way to write the code once and have it apply to all the pics I add.

    Thanks in advance,
    - Danny B.

    # March 1, 2010 at 6:50 pm

    A new window will make people pretty upset.

    Most people use "lightbox" now. There are a bajillion different versions of it now, each with their own pros and cons.

    If you want things to be automated, you might want to look into using a CMS.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".