How to centralize div horizontally and vertically

Hi all,

Here are two method to center align a position of div.

  1. div{
  2. height: 200px;
  3. width: 200px;
  4. background: #ccc;
  5. top:0;
  6. bottom: 0;
  7. left:0;
  8. right: 0;
  9. margin: auto;
  10. position: absolute;
  11. }

 – Read the full Blog at: Howto centralize div horizontally and vertically

FindNerd allows you to post Html questions and answers. In this forum html designers and developers can collaborate with each other to resolve a specific html issue, as all the community members here are highly experienced and can provide answers to any html issue in a short span of time.

Apart from this, If you have any PHP language issues, you can post at PHP developer forum and get instantly resolved it from highly experienced FindNerd community members.

Advertisements
How to centralize div horizontally and vertically

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s