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
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... |
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!