Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic