Design comparison
Solution retrospective
I'm a complete noob in web dev, here I tried to replicate the website as best as I could. I had a problem with the music icon & pricing section, I couldn't manage to position them correctly.
also had problems with the payment & cancel buttons.. I couldn't separate them on lines without ruining their position
Community feedback
- @chriskorsakPosted about 3 years ago
Hi,
To address your second paragraph:
My understanding is that <button> and <a> elements are both inline elements, not block-level. That's why they are stacking up on one line. You could wrap each in a block-level element like a <div>, or use a (display: block;) css rule for the element.
Hope this helps, -Chris
3 - @kennyputmanPosted about 3 years ago
Hey, looks great!
Positioning and centering is always difficult. I suggest looking into flexbox to help with this one.
Here are some helpful links for it:
You can wrap items in a div and then use flexbox to position them. for example wrapping the payment and cancel buttons in a div and then setting it to
display: flex
andflex-direction: column
will move those into a vertical stack.2
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