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
Mohammed tefou
1,507 PointsHey guys, I dont want my website to resize itself when the windows has been resized, I want a scroll bar instead,
My website resizes itself when i make the window smaller, i want my website to stay the same size but with a scroll bar instead
5 Answers
Tiffany McAllister
25,806 PointsTry setting a width on your #wrapper selector rather than max-width.
Mohammed tefou
1,507 PointsThanks that worked! At least the body did, but the heading section still responds
maali2
12,539 Pointstry overflow: scroll; only
Mohammed tefou
1,507 PointsI'ts still the same
maali2
12,539 Pointswhere is this code from, track module and section please
Mohammed tefou
1,507 Pointsmaali2
12,539 Pointsnot using overflow and my website works fine, has vertical scroll bar. what section are you on.
Mohammed tefou
1,507 PointsI'm on Build Navigation with Unordered Lists section. The problem is, whenever I resize my windows, my entire website gets smaller for mobile friendly, I don't want it, I want to be able to scroll vertically and horizontally without my website's size changing.
maali2
12,539 PointsWorks in Firefox and Chrome. (Problem with IE at moment probable need modification; webkit...) NOTE following changes in css.
main.css
/****************** GENERAL *******************/
- { box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; }
wrapper {
min-width: 940px; margin: 0 auto; padding: 0 10px; }
a { text-decoration: none; }
img { max-width: 100%; }
/****************** HEADING *******************/
header { float: left; margin: 0 auto 30px; padding: 5px 0 0 0; min-width: 1280px;
}
responsive.css
@media screen and (min-width: 1px) {
/****************** TWO COLUMN LAYOUT *******************/
@media screen and (min-width: 1px) {
/****************** HEADER *******************/
#logo { float: left; margin-left: 10px; text-align: left; min-width: 450px; }
nav { background: none; float: right; font-size: 1.125em; margin-right: 10px; text-align: right; min-width: 450px; }
Mohammed tefou
1,507 PointsMohammed tefou
1,507 PointsHere's my entire stylesheet: