[CSS] overflow: scroll;

  • Thread starter =?ISO-8859-15?Q?Martin_P=F6pping?=
  • Start date
?

=?ISO-8859-15?Q?Martin_P=F6pping?=

Hello,


I have a problem with overflow scroll. When I use it like in this div tag:

div#content{
padding-left: 5px;
padding-right: 5px;
position: absolute;
border: solid 1px #526e86;
height: 610px;
top: 0px;
width: 480px;
left: 190px;
text-align: justify;
overflow: scroll;
}

It works fine in general, but I have the problem that the scrollbars are
_always_ shown. Also if they are not needed.

For example the text in my div-tag is always smaller than the width of
the div-tag (480px). Therefore there is always an inactive horizontal
scrollbar shown.


Is there a way to avoid that?



Regards,

Martin
 
C

Chris F.A. Johnson

Hello,


I have a problem with overflow scroll. When I use it like in this div tag:

div#content{
padding-left: 5px;
padding-right: 5px;
position: absolute;
border: solid 1px #526e86;
height: 610px;
top: 0px;
width: 480px;
left: 190px;
text-align: justify;
overflow: scroll;
}

It works fine in general, but I have the problem that the scrollbars are
_always_ shown. Also if they are not needed.

overflow: auto
For example the text in my div-tag is always smaller than the width of
the div-tag (480px). Therefore there is always an inactive horizontal
scrollbar shown.


Is there a way to avoid that?

Many problem disappear if you remove width specifications with
fixed px sizes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top