How can I achieve something like this very old fashioned stuff with css
HTML Code:
  <table border="1" bgcolor="xyz">
      <element />
I do not want to use a fixed width for element (which might be a form or an image).
With a div, it uses the whole width of the window. If i set it to position:absolute; it has the right width, but I don't know, how to center it.