Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

first of all sorry for my english. :)

I need to do a html web with a table, td, div, any kind of this, fixed and centered (vertical and horizontal) of that size: 1010px of width and 565px of height. There's a way to do that without using frames or iframes and that the table, div or anything has a width and heigh no autosizable?

Thanks a lot :)


share|improve this question

migrated from serverfault.com Oct 25 '10 at 14:55

This question came from our site for system and network administrators.

There is certainly a way with CSS, but this question could get better answers at webmasters.stackexchange.com. – weeheavy Oct 25 '10 at 14:50

To center a div both vertically and horizontally can be done a number of ways. A non-confusing one was given on stackoverflow a few days ago by Marko here and here is a working example (also including in the stackoverflow answer).

As suggested in the answer, if you do not want the div to scroll with the page then you can set

position: fixed

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.