@md5dalton
Posted
Hello Paul Jin π
Congratulations on finishing this challenge π
Since this bg-pattern-card.svg is a background and does not form part of the page content, use background-image
instead of the img
element and you'll have less HTML markup to work with.
Negative margins also do work in placing that profile picture image, however I'd suggest you use CSS Grid instead:
main {
...
display: grid;
grid-template-columns: auto;
grid-template-rows: /* define your rows here */
}
.profile {
...
grid-row: 2 / 3; /* depending on how you defined your rows */
}
This is just one way to implement this through CSS Grid and there is still other code you can use. That's how flexible CSS Grid isπ
Marked as helpful