Shawn
Shawn

Reputation: 7365

CSS Overflow Property Question

So I have a <div>. I would like to turn the css style overflow:visible on all content that pass through the top of the <div> and turn overflow:hidden on all content that is below the div. Is this possible?

alt text

Upvotes: 2

Views: 123

Answers (2)

Trufa
Trufa

Reputation: 40727

Why don't you wrap all that is below your <div> in another <div> and make this last one overflow:hidden.

Does this answer your question?

Good luck!

EDIT:

Do you meen something like this example?

Upvotes: 1

Sun Hui
Sun Hui

Reputation: 23

Do you mean this

<style>
div { overflow:visible  } 
.Invisible { overflow:hidden } 
</style>

<div>123</div>
<div>123</div>
<div>123</div>
<div class="Invisible">Invisible</div>

Upvotes: 0

Related Questions