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
@edufelibugmAll comments
- @vanessie2424Submitted about 2 years ago@edufelibugmPosted about 2 years ago
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 π€π
1 - @andex23Submitted about 2 years ago
Please tell me if i can style this any better
@edufelibugmPosted about 2 years agoHi 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 propertyflex-direction: column;
. π₯ -
You could add a
:hover
subclass on your button to make it have some animation, you can just add anopacity: .5; transition: .5s ease-in-out
. β
that's all, the rest is just keep practicing π
Have a great day and happy coding π€π
Marked as helpful0 -
- @pippal5536Submitted about 2 years ago
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:))))
@edufelibugmPosted about 2 years agoHi @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 howtop: ;
,bottom: ;
,left: ;
andright: ;
to center the image. βother solution is the use of atribute
position: absolute;
π€Have a great day and happy coding π€
Marked as helpful1 - @Gabriela-hub-89Submitted about 2 years ago
any suggestions for improvement are welcome!
@edufelibugmPosted about 2 years agoHi @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 atributedisplay: 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 helpful0 - @felipejoazeiroSubmitted about 2 years ago
Had problem with border around the icons.
@edufelibugmPosted about 2 years agoHi bro, it's easy to solve the problem in the icons, define the
width
andheight
equal in the "a" tag, addborder-radius: 50%;
and finally add andisplay: flex
with atributesjustify-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 π
0