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

Is flexbox part of css3?

568


How to use class selectors to differentiate tag instances in css?

536


What are the advantages and disadvantages of inline styles?

535


What is less and sass in css?

646


What css class do you use to span 12 columns on medium sized screens but only 6 columns on large screens in the latest version of bootstrap?

592


What is hgroup?

573


What is the use of cascading style sheets?

636


What is cascading in hibernate?

582


List the various font attributes used in style sheet?

558


What is font weight in css?

619


What are the difference between "display:none" and "visibility:hidden" in css?

587


What is a tag selector in css?

629


What is the css3 hsl() function?

665


Differentiate between the id and class.

545


What is latest version of css?

607