Design comparison
Solution retrospective
I did my first javascript but there are some problems i couldnt solved so i really like to give me some solutions for better UI and coding, first i couldn
t place the box on top of the women pic how shoud i do that ? second if i toggle all accs together it will pop out the wrapper how should i fix that? third how should i hide parts of my picture ?it is not hidden well.
i `ll be glad to see your tips
Community feedback
- @marcus-hugoPosted about 3 years ago
Looks good!
For the box svg , add it to the html before the div
.image
, then in the css set it toposition: relative
and position it withtop:
andleft:
like thisdisplay: inline; position: relative; left: -177px; top: 282px;
Try removing the heights from the
.wrapper
and.accwrapper
, that should keep it from popping out of the wrapper.For hiding the images, it looks like you could add the bg-pattern to the
.image
div and then set it toposition: relative
andz-index: -1
, andoverflow: hidden
, though I'm not sure it will work?I ended up using
background-image:
withurl()
.background-image: url(../images/illustration-woman-online-desktop.svg), url(../images/bg-pattern-desktop.svg); background-position: -76px, -571px -248px; background-size: 472px, 966px; background-repeat: no-repeat;
Hope this helps! Happy coding!
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