Oztaco
Oztaco

Reputation: 3459

Overflow: no-content?

I'm using Visual Studio 2012 to make a web page, and I set the overflow property of a div element because I thought it would be an easy way to show content if the page is a certain size without using Javascript. It wouldn't work on IE or Firefox, so I looked it up at the w3schools.com reference, and it wasn't listed on there either. Why is this in Visual Studio if both IE and Firefox don't support it, and it's not on this reference, and more importantly, is there an actual property that does the same thing? (It says that if the content of the box overflow, then it doesn't show any of the content.)

Upvotes: 4

Views: 1519

Answers (1)

BoltClock
BoltClock

Reputation: 723658

The no-content value for overflow was introduced in this CSS3 module, but as of early 2013 there are no known implementations. The working draft is quite antiquated, but the new values are still present in the editor's draft, so it might still get implemented to spec someday.

I can't speak for why this already exists in VS2012, nor do I know of any other way to achieve this effect in pure CSS.

Upvotes: 5

Related Questions