Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Shuangshuang Zhao](https://secure.gravatar.com/avatar/8bb64d175441acc11e6ce628e681c8bb?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Shuangshuang Zhao
5,822 PointsIs the font size of the parent element a default setting, or can we change it?
I understand that the "parent element" is a relative definition. In this case, the font-size in of the body element,as a parent element, defines the font-size of the span. My question is what defines 1em=16px in the body element? Is it a fixed setting or can we change it?
2 Answers
![Jason DeValadares](https://uploads.teamtreehouse.com/production/profile-photos/4589032/micro_Me_crop2.jpeg)
Jason DeValadares
7,190 PointsEM's are a relative size, there's no pre-determination. They may differ across browsers as well as screen sizes and the resolutions on each of those screens. The best suggestion for visibility would be the advice given on the responsive websites course here - judge with your eye and adjust with media queries as the screen size and resolution changes.
Google describes and EM perfectly here: An em is a CSS unit that measures the size of a font, from the top of a font's cap height to. the bottom of its lowest descender. Originally, the em was equal to the width of the capital. letter M, which is where its name originated.
![hum4n01d](https://uploads.teamtreehouse.com/production/profile-photos/2079752/micro_mustachio.jpg)
hum4n01d
25,493 PointsYes, you can change the font-size of the body element by writing:
body { font-size 1.5em; }
which will make the relative font size for text 0.5em larger. Then any text within the body element’s default font size will be based off of the 1.5em or 24px. If you want the ems to be based off of the original 16px, use rems. (1rem = 16px)
Hope that helps!
![Austin Whipple](https://secure.gravatar.com/avatar/197cbf097a85c0eb7a8ae467c6f9e67c?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Austin Whipple
29,725 PointsCareful here, though. rem refers to the font size set in the root element. So in properly built HTML files that's the html element. If you change the font-size on html to 24px and body is 1.5em, you're now up to 36px.
![hum4n01d](https://uploads.teamtreehouse.com/production/profile-photos/2079752/micro_mustachio.jpg)
hum4n01d
25,493 PointsRight, Austin Whipple , sorry