Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6328935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:33:15+00:00 2026-05-24T17:33:15+00:00

I have to image with the following code: echo ‘<div class=thumb style=width: ‘.$array[‘thumb_width’].’px; height:

  • 0

I have to image with the following code:

  echo '<div class="thumb" style="width: '.$array['thumb_width'].'px; height: '.$array['thumb_height'].'px;">
            <a class="lightbox" width="72" height="72" href="showfile.php?image_id='.$array['before_image_id'].'" >
            <img src="showthumbs.php?image_id='.$array['before_image_id'].'"/">
            </a>

            <a class="lightbox" width="72" height="72" href="showfile.php?image_id='.$array['after_image_id'].'" >
            <img src="showthumbs.php?image_id='.$array['after_image_id'].'"/">
            </a>

            </div><p><p/>';

The issue is that it is displayed separately in the lightbox. I want it to show two image side by side in one lightbox.. How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:33:17+00:00Added an answer on May 24, 2026 at 5:33 pm

    There are 2 options, depending on the lightbox you’re using:

    1. Some lightboxes (colorbox, DOM window, facybox, thickbox) support loading html pages into an iframe rather than just images. If you can try loading html with the two tags into the lightbox.

    2. If you have a lightbox that only supports images (like squarespace’s crappy lightbox) you may have to merge the images together using PHP’s GD library.
      See this question:
      Merge Two images together on Server, then save

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following PHP code $val=<div id=user.$row['cid']. userid=.$row['cid']. class=innertxt><img src=images/images.jpg width=50 height=50><strong>.$uname.</strong><ul> <li>Email: .$row['cemail'].</li>
I have a page that displays a default image using the following code: echo
I have the following code to take an image and generate the thumbnail. how
I have the following code: Guid id = imageMetaData.ID; Data.LinqToSQL.Image dbImage = DBContext.Images.Where(x =>
I have the following XAML code, which displays a picture (image inside borders) and
I have the following css code. button.png is image where 3 button states are
I currently have the following code: <form action=process.php method=POST> <fieldset class=form-search> <input type=text class=input-text
I have the following code being echoed: [caption id=attachment_13 align=alignnone width=235 caption=Event 1] <img
I have the following code: <?php foreach($bb['slides'] as $b): $url = domain.com/ . $b->image
i have to change image color dynamically using php i used the following code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.