2 Replies - 1127 Views - Last Post: 22 May 2010 - 09:54 PM

#1 xPapeRCuTx   User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 79
  • Joined: 15-January 09

Scrollbars

Posted 22 May 2010 - 09:13 PM

I'm working on a website, and I'm trying to get it so that when something overflows, the scrollbars will actually SCROLL.

My site is http://www.onlinestupidity.com

When I make the browser smaller, to the point the image is too big for the screen, the scrollbars wont show, I've been looking up solutions, but couldnt find one.

Any help?

Thankyou.

This post has been edited by xPapeRCuTx: 22 May 2010 - 09:13 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Scrollbars

#2 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5509
  • View blog
  • Posts: 14,498
  • Joined: 18-April 07

Re: Scrollbars

Posted 22 May 2010 - 09:27 PM

Give some of the elements a fixed width instead of percentages. For instance, your header_container there is 100% in width. So if you narrow the browser, it won't show the horizontal scrollbar because it is 100% of the browser window's width... even if that width is 1px. That same container you have defined as having a height of 70px. So shrink your window's height and around 70px you will see scrollbars appear.

But as long as you use percentages, it is making your elements the percentage of your browser window no matter what size it is. You can also stick fixed width/height elements in your div tags (like images) and it will start showing you the scrollbars.

Hope this answered your question. :)
Was This Post Helpful? 1
  • +
  • -

#3 xPapeRCuTx   User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 79
  • Joined: 15-January 09

Re: Scrollbars

Posted 22 May 2010 - 09:54 PM

Thankyou!!!! This worked!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1