@lidiakrajewska
Posted
Hi! I've got a few tips that should make creating layouts easier for you :) Instead of using position property to center your component try using flexbox, it's super useful and makes it way faster once you understand it. The height of your component will be based on the content, so there's no need to specify that. To position elements inside of it, try using padding and margins instead of position. Also, by default, images, headings and paragraphs are displayed each in a new line, one under another, so unless we specify it otherwise in our CSS, the structure will be correct. I hope this will help you somehow, happy coding :)
Marked as helpful