+ Reply to Thread
Results 1 to 6 of 6




  

Thread: How can I add an image next to another

      
  1. #1
    I'm New! xmsmmgrs is on a distinguished road xmsmmgrs's Avatar
    Join Date
    January 27, 2009
    Posts
    6
    Rep Power
    0
    Feedback Score
    0

    Default How can I add an image next to another

    I want to put two ore more images together (in a line) using php. How can I do that?

  2. #2
    Translucent Purple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to beholdPurple Rain is a splendid one to behold Purple Rain's Avatar
    Join Date
    August 12, 2008
    Location
    Dancing In Purple Rain
    Posts
    1,665
    Rep Power
    5
    Feedback Score
    0

    Default Re: How can I add an image next to another

    Do you want any gap between the images or right parallel to each other? I think provided you don't and a <BR>or<P> tag between the images they will automatically be next to each other. Alternatively if you want a space between each one you should be able to do this with tables. I might be wrong though so dont hold me on it lol.

  3. #3
    I'm New! xmsmmgrs is on a distinguished road xmsmmgrs's Avatar
    Join Date
    January 27, 2009
    Posts
    6
    Rep Power
    0
    Feedback Score
    0

    Default Re: How can I add an image next to another

    That would be extremely easy, but I need to make it a big image. I was playing with imagecopymerge but could not find a way to put images one next to another. I will have 5 images to put one next to another and one under these.

  4. #4
    The Force is Strong! princessa is on a distinguished road princessa's Avatar
    Join Date
    April 3, 2008
    Location
    OH-IO
    Posts
    55
    Rep Power
    5
    Feedback Score
    0

    Default Re: How can I add an image next to another

    You can use this code:

    <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr>

    <td>
    <img src="http://URL-PHOTO-URL.com">
    </td>
    <td>
    <img src="http://URL-PHOTO-URL.com">
    </td>
    <td>
    <img src="http://URL-PHOTO-URL.com">
    </td>

    </tr>
    </table>
    You can repeat the <td> </td> parts to add new images to the same line. You can copy the whole <tr> </tr> part to add a new line of images below the first, but always stay inside the <table> tags.

    Hope that helps!

    princessa added 2 Minutes and 2 Seconds later...

    Quote Originally Posted by Purple Rain View Post
    Do you want any gap between the images or right parallel to each other? I think provided you don't and a <BR>or<P> tag between the images they will automatically be next to each other. Alternatively if you want a space between each one you should be able to do this with tables. I might be wrong though so dont hold me on it lol.
    <br> is a line break, which will cause anything written after the <br> to be on the next line down.
    Last edited by princessa; Feb 25th, 2009 at 2:13 am. Reason: Automerged Doublepost
    Life is too short to wake up in the morning with regrets, so love the people who treat you right, forget about the ones who don't, and believe that everything happens for a reason. If you get a chance, take it. If it changes your life, let it. Nobody said life would be easy, they just promised it would be worth it.

  5. #5
    Grand Masters The Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud ofThe Webmaster has much to be proud of The Webmaster's Avatar
    Join Date
    December 10, 2006
    Posts
    1,709
    Rep Power
    7
    Feedback Score
    0

    Default Re: How can I add an image next to another

    Use <div></div>

    If you give a better picture of what you exactly wanna do, I can help more..

  6. #6
    I'm New! mayo23 is on a distinguished road
    Join Date
    March 11, 2009
    Posts
    4
    Rep Power
    0
    Feedback Score
    0

    Default Re: How can I add an image next to another

    Definitely use the div and css method as you can control the positions much better.

    Plus css controlled pages are much quicker to load than table based sites.

    As far as the php part is concerned, I assume you are taking the images from a database. If this is the case, you will need to create an array.

    Put some more specific information and hopefully we can help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Help with image design
    By Red Hot Mama in forum Forum Lounge
    Replies: 1
    Last Post: Apr 6th, 2008, 5:18 pm
  2. Image in php?
    By unr in forum Programming
    Replies: 4
    Last Post: Dec 18th, 2007, 11:01 am
  3. Image Script
    By nanobi in forum HTML & Website Design
    Replies: 4
    Last Post: Jan 27th, 2007, 6:05 am

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
WebTalkForums
WebTalkForums
Recent Forum Threads