Sunday, February 14, 2010

Programmer - CSS: fixed size div, fixed vertical position and centered horizontally?

Programmer Question

CSS: is it possible to have a DIV that is both centered horizontally and fixed to the bottom of the browser? I'm using a set width and height for the internal div.



I've tried putting a div with position:relative inside a fixed outer div, and that aligns things vertically but then the outer div is not centered and I'm back to square one.



Is this even possible to do using just CSS? I'm using JQuery as well, so i would use that if its the only way, but i'd rather do it with CSS if its possible.



Thanks,
dylan

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails