@vanessie2424
Submitted
I'm still having difficulty making it responsive. I think the desktop view is okay, but the image for the mobile isn't showing and I can't figure out why. If someone can help, I will appreciate. Thank you.
@edufelibugm
@vanessie2424
Submitted
I'm still having difficulty making it responsive. I think the desktop view is okay, but the image for the mobile isn't showing and I can't figure out why. If someone can help, I will appreciate. Thank you.
@edufelibugm
Posted
Hi, congratulations on completing the challenge. π₯³π₯³
it looks pretty good, and the problem is easy to fix, you just need to add a few properties and modify some, the most important ones to make it look good are π§:
.content {
max-width: 300px;
margin: 0;
display: flex;
flex-direction: column;
}
.image {
background-image: url(../images/image-product-mobile.jpg);
min-height: 250px;
min-width: 200px;
border-radius: 10px 10px 0 0;
}
button {
font-family: 'Fraunces', serif;
display: flex;
align-items: center;
justify-content: center;
margin-top: 10px;
width: 100%;
background-color: hsl(158, 36%, 37%);
color: hsl(0, 0%, 100%);
border-radius: 4px;
height: 35px;
text-align: center;
font-weight: 500;
cursor: pointer;
}
only that π
Have a great day and happy coding π€π
@andex23
Submitted
Please tell me if i can style this any better
@edufelibugm
Posted
Hi bro!! congratulations on your solution! π₯³π₯³
Your design looks good, but it can be improved π¦Ύ
π§ any tips:
Your body has a display: flex;
this causes the footer to be positioned next to your container, you can fix this by setting the property flex-direction: column;
. π₯
You could add a :hover
subclass on your button to make it have some animation, you can just add an opacity: .5; transition: .5s ease-in-out
. β
that's all, the rest is just keep practicing π
Have a great day and happy coding π€π
Marked as helpful
@pippal5536
Submitted
Hi!! I have two questions that I can not answer. a) I messed up the background circle. I used position property. Is there any better or recommended method to code the background image? b) What is the correct method to center the avatar between two divs? I used negative margin but I know it is not the correct method.
Thank you:))))
@edufelibugm
Posted
Hi @pippal5536 !!! π
I can't help you with the background but about at center a image between two divs, i recommend you use the atribute position: relative
and add attributes how top: ;
, bottom: ;
, left: ;
and right: ;
to center the image. β
other solution is the use of atribute position: absolute;
π€
Have a great day and happy coding π€
Marked as helpful
@Gabriela-hub-89
Submitted
any suggestions for improvement are welcome!
@edufelibugm
Posted
Hi @Gabriela-hub-89 !!! π Your design looks good, but not it's responsive for mobile resolutions. π±π±
It's very easy adjust that, only add @media (max-width: /* resolution where it looks wrong */) { /*your CSS code*/ }
, then add the atribute display: flex; flex-direction: column;
in your class "cards". π€
And that's it, you already have your design for mobile!!! π₯³ π₯³ π₯³
Have a great day and happy coding π
Marked as helpful
@felipejoazeiro
Submitted
Had problem with border around the icons.
@edufelibugm
Posted
Hi bro, it's easy to solve the problem in the icons, define the width
and height
equal in the "a" tag, add border-radius: 50%;
and finally add an display: flex
with atributes justify-content: center; aling-items: center;
, then just look for the correct icons in fontawesome. π€
I hope it has been useful to you β
have a great day and happy coding π