Jump to content
rovf

overflow : I don't see any difference between 'scroll' and 'visible'

Recommended Posts

This is about the overflow-x and overflow-y properties, which are explained here:

 

http://www.w3schools.com/cssref/css3_pr_overflow-y.asp

 

I thought I would understand the explanations, but when I used the "try it" editor, setting the overflow-y property in the example provided, to either 'scroll' or 'visible', produce both the same effect: A vertical scrollbar is shown. From the explanation, I expected to see a scrollbar in the example when overflow-y is set to scroll, but not when it is set to visible

 

I tried this on fairly new versions of Chrome, Firefox, Opera, and on IE11

 

Share this post


Link to post
Share on other sites

It seems that overflow-x:visible won't work if the overflow-y property is set to hidden and vice versa. If you set them both to visible then it will work.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...