www.webdeveloper.com
Results 1 to 3 of 3

Thread: Ive got a div...

  1. #1
    Join Date
    Jul 2008
    Posts
    196

    Ive got a div...

    ...that doesn't want to be centered on the page. I can center it horizontally, but I cant figure out how to do so vertically.

    Thanks!
    Resistance is futile if < 1Ω

  2. #2
    Join Date
    Jun 2009
    Posts
    45
    There is no way you can center align a div vertically by using css the only way you can center align a div by giving margin from top like

    margin-top:10px;

  3. #3
    Join Date
    Sep 2010
    Location
    Philippines
    Posts
    4
    There are already many tutorials on how to center an element (inline/block) horizontally and vertically. Since you're dealing with DIV which is block, it will be easy.
    Here are some guides for you:
    http://blog.themeforest.net/tutorial...ring-with-css/
    http://www.noobcube.com/tutorials/ht...inners-guide-/

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