WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Web Developer CSS Question

for

From: Swift, Daniel P.
Date: Jan 16, 2018 12:33PM


We use em units for font-size and percentages for widths of containing elements. My understanding for ems on containers is that the width will grow as the text grows. So if you have a container and you want to maintain the text layout, then ems would be more appropriate. If screen layout is more important and you don't have a preference for when the text wraps to the next line, then using percentages for the container is more appropriate ... at least, that's my understanding.

I hope that makes sense!

Dan Swift
Senior Web Specialist
Enterprise Services
West Chester University
610.738.0589