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 inline style sheet?

601


Explain CSS grid layout with example?

600


What is moz in css?

535


What is css ict?

678


What does plus sign mean in css?

729


Why do we use css?

577


What are flex properties?

618


Difference between reset.css and normalize css?

844


Which among the following is more precedent: CSS properties or HTML procedures?

762


Is padding included in width?

544


How do you inspect element on mobile?

593


What does abcd (and abcde) mean?

546


Why * is used in css?

632


What are the associated border-radius properties?

655


What is a div class?

634