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

David Trejo
David Trejo
19,914 Points

Bootstrap question about .hidden-xs

I was wondering if there is a way to make changes in the scale of pxs, when using the property .hidden-xs. I know that hidden-xs default value is set to < 768px. How can I override the value of the default value?

1 Answer

Hugo Paz
Hugo Paz
15,622 Points

In your bootstrap.css you have this

@media (max-width: 767px) {
  .hidden-xs {
    display: none !important;
  }
  tr.hidden-xs {
    display: none !important;
  }
  th.hidden-xs,
  td.hidden-xs {
    display: none !important;
  }
}

Just add this to your custom css so you can overwrite it without changing the bootstrap file.

David Trejo
David Trejo
19,914 Points

Thank you for the help Hugo!