7

I have a table row:

<ul>
<li>This</li>
<li>is</li>
<li>my</li>
<li>cell</li>
</ul>

and some CSS:

UL { height: 30px; float: left }
UL LI { width: 25%; height: 100%; float: left }

which works great. However when I add the following CSS:

UL LI { overflow-x: hidden; overflow-y: visible }

scrollbars in the cells become visible.

The default value for overflow is visible and no scrollbars are visible, yet when I change only one of the axis to something else, scrollbars appear.

I need the X axis to be clipped and Y axis visible (for cell text elipses and a dropdown menu).

6
  • possible duplicate of css overflow-x visible and overflow-y hidden causes scroll bar Commented Jun 18, 2013 at 4:55
  • It appears to be a known "bug". Thanks "Related questions" in the sidebar for leading me to the other question! Commented Jun 18, 2013 at 4:57
  • can we have the fiddle demo of the problem so that we can identify the issue? Commented Jun 18, 2013 at 6:23
  • @SaurabhLP If you really want to you can create your own fiddle since I actually wrote out the HTML and CSS in my question from scratch. The question has already been answered and you can learn more about it through the other question linked. ;) Commented Jun 18, 2013 at 6:42
  • 1
    @SaurabhLP If you're calling my question silly, I disagree. Commented Jun 18, 2013 at 8:53

1 Answer 1

14

The problem with overflow-x/y is that you cannot have visible mixed with another value so in your code visible will be treated as auto.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.