Design comparison
Solution retrospective
This is my first project, I'm having trouble with the bubble imgs. I tried using css background-image but the positioning was all wrong, so I went with divs but still off a little bit. Any suggestions? tks
Community feedback
- @vanzasetiaPosted over 3 years ago
👋Hi Ads645! My name is Vanza!
👍 Good job on completing your first challenge! I see that you having struggle on positioning those bubbles. Well, when I was doing this challenge I also struggled with two bubbles.
So what I have done to position those bubbles, would be something like this:
body { background-image: url('./images/bg-pattern-top.svg'), url('./images/bg-pattern-bottom.svg'); background-position: right calc(47vw + 15%) bottom calc(65vh - 15vw), left calc(40vw + 25%) top calc(72vh - 15vw); background-repeat: no-repeat; min-height: 100vh; overflow-x: hidden; }
You can remove the
bckgrndimg
andbckgrndimg2
from yourindex.html
.That's it! Hopefully this solve your problem!
**Happy Coding!**😉
Marked as helpful1@Ads645Posted over 3 years ago@vanzasetia Awesome! I knew there was to be an easier way. Thanks so much.:)
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord