www.webdeveloper.com
Results 1 to 4 of 4

Thread: vertically centered div

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    vertically centered div

    I know how to center horizontally, but I am building a website that looks like a book, and I'd like it to be centered vertically as well, no matter what the screen size.

    How would I center a div vertically? Thanks.

    The website is here: http://www.rosieandtheposers.com

  2. #2
    Join Date
    Feb 2012
    Posts
    61
    check this one, hope this helful to you..

    http://web.archive.org/web/200910172...using-css.html
    Thanks,
    Som
    Full2pune

  3. #3
    So it looks great horizontally but now I need it to center vertically in the ... is no cross browser solution for vertically centering your DIV container.

  4. #4
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,456
    Hi there Crew144,

    and a warm welcome to these forums.

    I have reworked your page to achieve the effect that you require.

    The files may be downloaded here...

    coothead

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles