chattyfish Posted June 1, 2017 Share Posted June 1, 2017 Hello. How do we make cards appear lined up, auto centered and bootstrapped? Here is one card, I would like to have nine of them. https://www.w3schools.com/w3css/tryit.asp?filename=tryw3css_cards_depth Could you, please, post a code for this quest? Thank you Link to comment Share on other sites More sharing options...
dsonesuk Posted June 1, 2017 Share Posted June 1, 2017 One option is similar to aligning text to centre, The parent block element (<p> or in your case a div) you would use text-align: center; ALL the child elements (cards) you would give property display: inline-block; this would cause the cards to act like text in a paragraph using text: align center; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now