Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to center align a div inside another div?

Answer Posted / hrpynux@gmail.com

Use the "inline-block" value of the display property to display the inner <div> as an inline element as well as a block. Set the text-align property on the outer <div> element to center the inner one.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does font weight mean in css?

809


How to style the first line of a paragraph as a uppercase ?

632


Is css faster than xpath?

627


What is difference between css2 and css3?

655


What's the difference between resetting and normalizing css?

783


How do I make my grid responsive?

603


What is the use of media types in css?

600


Why does my content shift to the left on some pages (in ff)?

587


Why we use xpath instead of css?

732


Explain opacity in css3?

677


What is the use of box-shadow in css?

641


What is css in coding?

637


What is a contextual selector in css?

600


What is div tag in html?

552


What is css rule?

595