I am using percentages instead of pixels for padding in my CSS, but they aren’t working.
.menu li a{ padding-left:5%; padding-right:5%;}
I want to use percentages to make the menu section responsive in all dimensions. How could I achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you’ve written is technically fine. It might be getting overridden – but that is just one possibility. It will also depend on the width of the parent element.