Entigingext
New Member
I have a \[code\]div\[/code\], which contains a \[code\]table\[/code\]. Everything is working as I want, except I don't know how to set the \[code\]width\[/code\] of the \[code\]div\[/code\] so that it grows as the \[code\]width\[/code\] of the \[code\]table\[/code\] inside it grows. How Can I do that? Thanks.This is the CSS code of the \[code\]div\[/code\]: \[code\]#events-table-wrapper { margin-left: auto; margin-right: auto; width: 500px; margin-top: 100px; border: 1px solid #CCC; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;}\[/code\]Setting \[code\]width\[/code\] to \[code\]auto\[/code\] didn't help. Btw, I didn't change anything in the table in CSS.Edit: Here is a live version: http://jsfiddle.net/ZDF2U/