I have a web page with a form with a border on top, and under it a table with data.
Is there a way in CSS to make sure that regardless of their size both the form and the table always appear in the middle of the browser window?
I.e. the space to the right of either one should be the same as the space to the left.
This is assuming you mean 'center' instead of 'middle' - middle implies horizontally AND vertically centered (at least to me) which is a much trickier feat. Specifying margin: auto only works if the element is given an explicitly defined width.
I've switched careers...
I'm NO LONGER a scientist,
but now a web developer...