Home › Forums › CSS › Responsive Web Design: When to use px vs. % on margins and padding? › Re: Responsive Web Design: When to use px vs. % on margins and padding?
December 29, 2011 at 3:47 pm
#93642
noahgelman
Participant
It can have a fixed width, but a responsive width. For example:
#element {
padding:20px 15%;
}
The height will stay the same but the width will change as you resize the page