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)
![tallwes](https://secure.gravatar.com/avatar/98b06c8f0c049e9cea4a545ee249f030?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
tallwes
6,871 PointsTime rail padding issue will not go away.
After adding CSS as instructed by Nick Pettit. The time rail is still lower than the rest of the player.
Here is my CSS:
.mejs-treehouse .mejs-controls {
background: rgba(56,64,71,0.98);
height: 30px;
}
.mejs-treehouse .mejs-controls .mejs-controls button { outline: none; }
.mejs-treehouse .mejs-controls .mejs-captions-button { margin: 0 7px; }
.mejs-treehouse .mejs-controls .mejs-captions-selector { background: rgba(56,64,71,0.98); width: 100px; right: auto; }
.mejs-treehouse .mejs-controls .mejs-time-rail { padding 0; }
.mejs-treehouse .mejs-controls .mejs-time-rail span { height: 100%; border-radius: 0px; }
.mejs-treehouse .mejs-controls .mejs-time-rail .mejs-time-total, .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-time-loaded, .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-time-buffering, .mejs-treehouse .mejs-controls .mejs-time-rail .mejs-time-handle { background: #2d3339; margin: 0; }
.mejs-treehouse .mejs-controls .mejs-time-rail .mejs-time-current { background: #ff9900; }
.mejs-container .mejs-controls .mejs-time-rail .mejs-time-total .mejs-time-float { border: none; background: none; text-shadow: 0px 1px 2px rgba(0,0,0,08); font-family: Helvetica, Arial; font-size: 13px; color: #fff; }
What did I do wrong?
2 Answers
![Dale Severude](https://uploads.teamtreehouse.com/production/profile-photos/2892102/micro_LRG_DSC08584.jpg)
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,349 PointsYou are missing a colon with your padding value. Should be as follows:
.mejs-treehouse .mejs-controls .mejs-time-rail {
padding: 0;
}
![Alan Lopez](https://secure.gravatar.com/avatar/826da5da16fbac78bbd7166056e57a03?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Alan Lopez
PHP Development Techdegree Student 6,830 PointsI think I know what you are saying. The time rail is too wide and extends beyond the player. I changed the mejs-time-rail span CSS to this:
.mejs-treehouse .mejs-controls .mejs-time-rail span { height: 80%; border-radius: 0px; }
It seems like a better fit for my browser(s).