Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
4
Comments
1

Wisdom

@AbasiekongCalabar, Nigeria80 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Order summary component

    #tailwind-css

    Wisdom•80
    Submitted about 3 years ago

    0 comments
  • Testimonial Grid Section

    #tailwind-css

    Wisdom•80
    Submitted about 3 years ago

    0 comments
  • Huddle Landing Page with Curved Sections


    Wisdom•80
    Submitted about 3 years ago

    0 comments
  • 3 column preview card component


    Wisdom•80
    Submitted about 3 years ago

    0 comments

Latest comments

  • Dean Hudek•290
    @deksa89
    Submitted about 3 years ago

    Order summary

    2
    Wisdom•80
    @Abasiekong
    Posted about 3 years ago

    First, you need to understand the visual layout of how elements are placed.

    In this case, I would suggest wrapping the Annual plan text and Pricing in a parent element:

    <div class="pricing-plan">
         <p class="pricing-plan--heading">Annual Plan</p>
         <p class="pricing-plan--sub-heading">$59.99/year</p>
    </div> 
    

    When you're done you then wrap the the Music Icon, Pricing Plan & Change button, make them share the same parent element, like this:

    <div class="summary-order-pricing">
              <img src="images/icon-music.svg" alt="Music Icon">
    
              <div class="pricing-plan">
                   <p class="pricing-plan--heading">Annual Plan</p>
                   <p class="pricing-plan--sub-heading">$59.99/year</p>
              </div> 
    
              <a href="#" class="btn-change">Change</a>
    </div>
    

    From this point, you could set the display property of the summary-order-pricing block to display as a flex container:

    .summary-order-pricing {
        display: flex;
    }
    

    and you're all set!

    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub