views:

30

answers:

3
+1  Q: 

Scroll visibility

In css, i set the overlow property of the div to scroll and it works well. But the scrolls are visible but not active with a greyed color even they are not needed.

So how can i make the scrolls invisible when they are not needed ?

alt text

+2  A: 

That is the nature of overflow: scroll. Try overflow: auto instead.

Kevin
overflow:auto didn't solver my problem because of the another issues. Is there any function to make scroll invisible?
penguru
You'll have to provide code examples.
Kevin
A: 

you can also use overflow-x and overflow-y css attributes to control autoscrolling of particular dimension of html element

heximal
A: 

Try auto property

overflow: auto - This will create a scrollbar - horizontal, vertical or both only if the content in the block requires it. For practical web development, this is probably the most useful approach to creating a scrollbar.

Pranay Rana