I posted the following in a css newsgroup:
I have read a number of tutorials on rounded corners for tables and I also have The CSS Anthology by Rachel Ward published by Sitepoint. As I understand all I have read 1) tables cannot have rounded corners (except with images for the corners) but by putting the table in a container that has rounded corners the table appears to have rounded corners and 2) it seems the container must have a width set.
In a restricted access Web site I have a number of tables of different widths and heights to which I would like to add rounded corners and a border. My question is can CSS and/or corner images be used to create such a container that will adjust its size to the size of the table I place in it?
I received the following response:Try this for your corners that will expand to any size: http:// http://www.roundedcornr.com/ [/url]
The result of trying this method is at: http://www.mewalker.co.uk/membersarea%5B/url%5D where the vertical fit is as expected but horizontally the width hasn’t adjusted to the width of the table. Can anyone account for this behaviour please? Also HTML Tidy tells me that two empty divs have been trimmed and I don’t understand why they are present if they have no use!
Enlightenment would be very much appreciated. Equally an alternative way of achieving a border with rounded corners around a table would help.