Nope. You might mention what browser you're using where you see this issue, and you could also validate and correct your code - that can cause various quirks.
As I make the browser width smaller, the palm tree gets pushed off the page to the left, and eventually disappears. Is that what you mean? Your center/main section is a fixed width, leaving no room for the stuff outside it...
As I make the browser width smaller, the palm tree gets pushed off the page to the left, and eventually disappears. Is that what you mean? Your center/main section is a fixed width, leaving no room for the stuff outside it...
Dave
Hey Dave,
That's precisely what i mean. What's the best way of going about a fix without screwing up my center content area?
Well, I would set down the keyboard for a minute and decide what you want to have happen when you resize the browser window. You've got several options, and you just need to pick one. All have pros and cons, there is no "best" way unfortunately.
- You could change your center content (.content class) to be a percentage-based area, that is always some percent (e.g. 80% of the window size.
- You could reduce your content (1126px is quite huge) but keep it a fixed size that will fit in most folks' browsers
- You could do some combination of both such that the center window has a minimum fixed size, but grows above that.
Also consider what are you going to do with the palm trees, do they need to be percentage-based as well, or are they a fixed size? What about the menu on the right? What about your navigation along the top?
Once you pick a way, then you need to revisit all the div areas on your page and rework them in that model.
I think I might keep the center container and the top menu fixed and shrink it down to about 800px. Additionally, I think I want the logo on the left (palms) to be percentage based.
Scratch the menu on the right, there will be no menu.
The problem with that draft was pretty much the same thing, I couldn't get it centered on different size screens.. looks good on my screen at work but it's slightly off centered to the left ... and on my laptop i have to scroll over a bit to the right.
Let me ask a couple more questions... You say you want the content area fixed at 800px, but the logo to stretch. So when the browser is at 900px, I presume you would want the logo on the left 100px, and the content to the right at 800px. And when the browser is at 1200px, you want the logo to expand to 400px, with the content at 800px to the right? And if the browser is at 800px, what do you want, and when it's at 700px?
Seems like life would be a lot easier if you didn't stretch the logo, and just made it some fixed size.
Your .container is 1024 pixels wide, and you're stuffing a main_content of 1123 pixels inside it. Can't fit! Change .container to 1123 to at least be as bit as main_content, and get rid of the -52px margin offset on main_content. I think that should do it.
Bookmarks