Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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 :)

Laura

share|improve this question

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

This question came from our site for professional 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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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