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

Łukasz Szmelc
Łukasz Szmelc
16,408 Points

Slick slider adds width do the site

Hey guys

I'm building a website and I have a slick slider. Although the width of the site is set to 100vw, (max-width as well), the slider adds a white bar at the right side of the site. I know it's the slider because when I commented it out in an HTML file, width of the site was normal. I wish I could upload a screenshot but I don't know if I can do it on this forum.

Has anyone ever encountered such a problem? Thanks in advance for your reply.

2 Answers

I would recommend using Google Chrome Developer tools.

Right click on the element in Google Chrome and choose inspect, from here as you hover over page elements it will highlight the box model which will help identify what is causing the issue.

Łukasz Szmelc
Łukasz Szmelc
16,408 Points

Thanks for the reply. I have already done that. I have just noticed that it only happens when I have more than one slides. Weird!