Aligning a table to center and having an image beside it

Is it possible to align a table to the center and have an image beside it?

LOL, OF course! I always say, EVERYTHING is POSSIBLE in programming ! Just how to do it with ease…

Hmmmm, So, two ways. First, the way most people will say is best, use two

tags and use CSS to place them where you want. The second, more easier and simpler is to just set up your table correctly.

You can next tables inside of tables. Or you can just add another col with your picture in it.
Let’s say you have a 3x3 tic-tac-toe type of table and you want a picture to the right of it.
Just make the table 3x4 (3 rows of 4 cols) and span the 4th col across the 3 rows. That is so very
easy to do. Just use the colspan=3 option inside the top cell for the fourth col. It will give you your
3x3 with a 4th col that contains one cell.

Here is a example table that shows it further. I think this is the simplest solution. Also, you can turn off the borders around it as need if you don’t want it bordered… Hope this helps…
[php]

Month Savings
January $100 Picture would
Go here...
February $100
picture
would go here...
[/php] I put a span at the bottom and one on the right side... Just takes a little figuring how you want it. For
's with CSS, you would do it with one DIV that would take the 100% width and then place two div's inside that one and place them where you want them. More work for one simple displayed table.... Hope all that helps...

Thanks for your help. I got it to work.

Congrats! Be of course we are all wondering which way you went… The table way or CSS way…

Just curious…

I went with table, it seemed like the easy fix.

I like tables too. Although everyone is pushing for CSS and DIV’s. You can actually use a CSS TABLE.
So, far it seems they would just the same as HTML tables… But, glad it is solved! See you next time!

Sponsor our Newsletter | Privacy Policy | Terms of Service