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

Juan Zamora
Juan Zamora
3,114 Points

Akward space at the right of my web site

I design a quick mini web site and I did all to center the page in the browser and it does without any problem but i have an space at right that i can handle it, I want the browser horizontal bar disapear, I dont know why I cant get rid off that space, its like a half of the size of the page. When it loads, it loads in the center but the user can move the page to the right and he will find an empty space.

3 Answers

Erik McClintock
Erik McClintock
45,783 Points

Juan,

Without seeing the site or the code it's hard to tell, but this issue is frequently caused by some stray element that has a hard pixel width set on it that is wider than the viewport. If you're trying to build a responsive site and have most things set to percentage widths and whatnot, I'd comb through and check that you don't still have a straggler that's got a larger pixel width.

Erik

Juan Zamora
Juan Zamora
3,114 Points

Thank you Erick for the quick response, the site is www.backuptotal.ec if you can help to determine what could cause this behavior..?

Hi Juan,

I'm not sure what you're trying to do with your <hr>'s and the .fancy-line class but that's what's causing the issue.

It's the 100% width you have set for hr.fancy-line:before and hr.fancy-line:after