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

Bradley Maravalli
Bradley Maravalli
8,927 Points

Why is the CSS not responsive? Found a solution.

With my layout, I am only a laptop screen so I have my the Workspace on my left and the video on my right. Because the width of the scoreboard is 700px, it goes off the page.

My solution to this as to change the scoreboard class within the app.css file. I changed "width: 700px" to "width: 100%."

BONUS: I also added "padding-bottom: 10px" so the bottom border of the last player does not go outside the scoreboard. (Cleaner look).

.scoreboard {
  background: #333;
  width: 100%;
  margin: 70px auto;
  box-shadow: 0 4px 0px #333;
  border-radius: 15px;
  padding-bottom: 10px;
}