Display two images side by side on an HTML Page

Posted by user77735 on Stack Overflow See other posts from Stack Overflow or by user77735
Published on 2010-05-15T07:38:29Z Indexed on 2010/05/15 7:44 UTC
Read the original article Hit count: 202

Filed under:
|
|
|

I am trying to place two images of the same size side-by-side. If I use a "table" then I am able to display both images side-by-side. But in my CSS Stylesheet I am using a custom format for the table and this shows on the page containing the images too. But I want to just display both images without any custom background or border etc.

I tried using "div", "span", "ul" & "li" etc. but failed in each case.

  1. How can I place two images (of same size) in a single line, without using a "table"?

  2. If I have to use "table" for the same, then how can I use two (or more) different formatting for my tables using CSS?

Thank you.

Lalit Kumar Barik

© Stack Overflow or respective owner

Related posts about html

Related posts about table