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

CSS

REM lower limit in Chrome?

I'm seeing some strange behavior in Chrome.

Using the following code, the main div will stop resizing when it hits .56 rem, and will not resize lower than that in Chrome.

In Firefox, it will continue to resize below that point, and will stop at the minimum window width.

Can anyone else reproduce this? Is .56rem the lower limit in Chrome or am I doing something wrong?

<!DOCTYPE html>
<html>

<head>
    <title>Rem Test</title>
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="css/style.css">
</head>

<body>
    <div class="responsive">
        <div class="main">
        </div>
    </div>
</body>

</html>
@media only screen and (min-width: 3.125rem) {
  .responsive {
    font-size: 0.05rem; } }
@media only screen and (min-width: 6.25rem) {
  .responsive {
    font-size: 0.1rem; } }
@media only screen and (min-width: 9.375rem) {
  .responsive {
    font-size: 0.15rem; } }
@media only screen and (min-width: 12.5rem) {
  .responsive {
    font-size: 0.2rem; } }
@media only screen and (min-width: 15.625rem) {
  .responsive {
    font-size: 0.25rem; } }
@media only screen and (min-width: 18.75rem) {
  .responsive {
    font-size: 0.3rem; } }
@media only screen and (min-width: 21.875rem) {
  .responsive {
    font-size: 0.35rem; } }
@media only screen and (min-width: 25rem) {
  .responsive {
    font-size: 0.4rem; } }
@media only screen and (min-width: 28.125rem) {
  .responsive {
    font-size: 0.45rem; } }
@media only screen and (min-width: 31.25rem) {
  .responsive {
    font-size: 0.5rem; } }
@media only screen and (min-width: 34.375rem) {
  .responsive {
    font-size: 0.55rem; } }
@media only screen and (min-width: 37.5rem) {
  .responsive {
    font-size: 0.6rem; } }
@media only screen and (min-width: 40.625rem) {
  .responsive {
    font-size: 0.65rem; } }
@media only screen and (min-width: 43.75rem) {
  .responsive {
    font-size: 0.7rem; } }
@media only screen and (min-width: 46.875rem) {
  .responsive {
    font-size: 0.75rem; } }
@media only screen and (min-width: 50rem) {
  .responsive {
    font-size: 0.8rem; } }
@media only screen and (min-width: 53.125rem) {
  .responsive {
    font-size: 0.85rem; } }
@media only screen and (min-width: 56.25rem) {
  .responsive {
    font-size: 0.9rem; } }
@media only screen and (min-width: 59.375rem) {
  .responsive {
    font-size: 0.95rem; } }
@media only screen and (min-width: 62.5rem) {
  .responsive {
    font-size: 1rem; } }

.main {
  height: 10em;
  background-color: black; }