aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes css problem, the table always show below the image, not next to it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "css problem, the table always show below the image, not next to it" Watch "css problem, the table always show below the image, not next to it" New topic
Author

css problem, the table always show below the image, not next to it

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
the image has property

then there is a table

the problem is the table always show under the image, I want the table shown next to the image (on the right hand side of the image), any method using CSS?
[ November 10, 2008: Message edited by: Bear Bibeault ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Image is an inline element, table is a block element.

If you want to make it appear next to it, you need to float the table.

Eric
peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
yes, I have float the image and the table, image float to left and table float to right, but the result is the table still under the image although it has floated to right!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: css problem, the table always show below the image, not next to it