Hi. I would be very grateful if you could help me solve two things that I don't know how to do (or that have still come out).

  1. How can I center the button (btn1) in the second div (center in the white box), without using "px" but using only percentage? (or simplified method for centering?).

Thank you very much for helping me, I really appreciate it.

Egor_3 commented: I own a small business and I have a website. When I have some technical problem, I turn to these guys https://itmaster-soft.com/en/frontend-developme +0

I solved problem:


Add in .container

text-align: center;

And delete right: -25px; in .btn1.

Now if someone can give me advice or a more simplified way, I'm happy.

commented: LIVSPACE Architects & Interiors is a professional, creative and dynamic architectural .<a href="https://www.livspacedesigns.com/">interiordesigne </a> +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.