1

My page is 1920px width, and for some unknown to me reason, my scrollbar wants to scroll page into the right, where there is empty space only. I tried specifying <html style="width: 1920px;"> but that does nothing, bottom scrollbar just scrolls like the page was 2100px... Is there anything I can do about it? Like, specifying fixed horizontal overflow?

Edit: Here is the link to the page: look only at homepage, because on the other pages it looks ok: http://scyk.pl

11
  • 4
    Post your html and css where possible, it'll help us get a better idea of what's wrong. Commented Mar 15, 2013 at 9:48
  • can you create an example for better understanding of your problem & it's not good to define width to html tag Commented Mar 15, 2013 at 9:48
  • can you display more html about your problem please ? Commented Mar 15, 2013 at 9:48
  • Edited my post with link. :) Commented Mar 15, 2013 at 9:50
  • Make sure the padding and margin of your html and body added together with the width don't exceed the width you want, otherwise try adding the following: css box-sizing:border-box (newer browsers only) Commented Mar 15, 2013 at 9:50

3 Answers 3

1

You have a problem in the buttons bar you have to look in your code for :

<div class="frontPageButtons">

the position of the div is relative and you set left to 30% :

.frontPageButtons {
    left: 30%;
    position: relative;
}
Sign up to request clarification or add additional context in comments.

1 Comment

Tried it just now, with no results. :/
0

You most likely have a child element that is pushing the containing block wider. Overflow hidden will work, but generally it is better to avoid setting fixed widths for child elements unless you are defining a new layout context.

Comments

0

try to set min-height:500px; in css

happy coding...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.