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 is the function of the css clear property?

679


How do I have links of different colors on the same page?

695


What are the 3 parts of a css rule?

714


What is css backface-visibility property?

731


Define property?

675


What are the different elements of css box model?

723


What are the different versions of css?

646


Who created css?

772


What is webkit browser?

711


Which property is used to set the width of the outline?

638


What is the purpose of the z-index and how is it used?

613


How do I make my grid responsive?

646


What is nav used for?

731


Can a div have multiple classes?

706


Why css is called cascading?

605