@FedericoBordiniSubmitted about 2 years ago
What would you use to replace the <br> as line breaks in CSS? can an image and text be centred more efficiently? how would it adapt to a mobile screen?
What would you use to replace the <br> as line breaks in CSS? can an image and text be centred more efficiently? how would it adapt to a mobile screen?
Hi Federico Bordini, well done! keep going 🙌🏻
body { display: flex; // for to use the flexbox flex-direction: column; //the default on flexbox will be in a row to put one under the other justify-content: center; //align the items on center on horizontal align-items: center; // align item in the vertical }
You can use flexbox to center things and break down the elements, here is a link: https://css-tricks.com/snippets/css/a-guide-to-flexbox/ if you like learning to play, I like this one: https://flexboxfroggy.com/
Have a nice code day!!