This challenge is not too hard. I want to practice SCSS. I have a question about background image. Is there any way to change background image border radius? I cannot do that so I have to add <img> into html. Any suggestions are appreciated. Thank you!
Henry Zheng
@LonelyBuddyAll comments
- @NhanPhamTrongSubmitted almost 3 years ago@LonelyBuddyPosted almost 3 years ago
You can just give a div a background-image and style it like this:
background: url(images/image-anne.jpg) no-repeat center/cover; width: 51px; height: 51px; border-radius: 50%;
Marked as helpful0 - @Kristiana12Submitted almost 3 years ago
Hey Everyone! This is my solution to the FAQ section.
I need some help with a transition I have been trying to make but haven't succeeded yet. When the answer 'hides' I want to transition the height, so that it closes smoothly, I tried to put a transition to
.question__answer
but I didn't see any effect. Does anyone have any suggestions?Your answer is very much appreciated! Thank you in advance! :)
@LonelyBuddyPosted almost 3 years agoI just tried it in the Chrome dev tool, and it works by giving
.wrapper .container .question.active p
a fixed height value. I think the transition just doesn't work on auto value🤔.Marked as helpful0