@moqasalem
Posted
Hello MSA-new welcome to frontendmentor
I think the problems 1,2,3,5 which you are facing can be solved with "flex" element like this:
.class-name{ display: flex; flex-direction: ... ; justify-content: ... ; align-items: .... ; }
for problem 4 you can give border-bottom to your class to make line below it .
@MSA-new
Posted
@moqasalem Hi Thank you for your answer
.direct-parent-to-content {
display: flex; /* When I used this the image was gone :-( */
justify-content: center;
align-content: center
}
Where should I use it ?
@moqasalem
Posted
@MSA-new it depends on your classes and how many columns or rows you wanna use Take look to me solution and open the style code to see the Flex components https://www.frontendmentor.io/solutions/nft-preview-card-component-with-html-and-css-vnXq65DVb