Jump to content

Internal scrollbar question (solved)


jaidanwolf

Recommended Posts

Hi, just a quick question...I'm perfectly happy with how my content area is set up to scroll internally. I was just wondering if there is any code I can add in to remove the scrollbar when the content is not long enough to warrant it. It's not necessary, I just thought it would look less awkward to have it not show up on the shorter pages.Example of where scrollbar is required (working great): hereExample of where scrollbar isn't needed but showing up anyway: here.This is the related section of my stylesheet:

#content {  background: #000000 url(images/bg.jpg);	margin: 0 auto;	width: 875px;}	div.scroll {  border: 1px solid #000000;  background:#000000 url('images/space.jpg') repeat-y 0 0;  color:#ffffff;  padding-left: 3px;  padding-top: 2px;  width:847px;  height: 450px;  overflow: scroll;  overflow-y: scroll;  overflow-x: hidden;  margin-left: auto;  margin-right: auto;}

Is there an easy solution? Thank you!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...