Monday, 15 June 2015

css - Using overflow-y: hidden or overflow-x: hidden to only hide one side of an element -


The title asks too many questions but I know that overflow-y: hidden and Overflow-X: hidden You can either ride towards an element on the top and bottom or to the left but using one of these selectors is one way to hide only one side.

Especially I am interested in hiding under a section which is flowing above, but not at the top.

If there is no other CSS to cater to the desired effect?

There is a legitimate purpose for this and I have to see that there is a standard way of doing this.

To make it a little clearer, I am under the control of CSS only Slideshows and I have to cover an element within the slideshow above the div above div , But overflow: hidden values ​​are pushed to this div when I do this I can completely remove overflow: hidden But then he does not do a very good slideshow!

A Bela is included below:

below Based on the example given in the given jsfiddle question only provides the desired effect of cutting the bottom edge using Clip :

Complete for reference The code has been copied:

HTML

  & lt; Div class = "outer-container" & gt; & Lt; Div class = "inner-container" & gt; & Lt; / Div & gt; & Lt; / Div & gt;   

CSS

  .ter-container {background: red; Height: 100 pixels; Margin-top: 100px; Width: 150px; Padding-left: 50px; } .non-container {background: green; Height: 200 pixels; Width: 100px; Conversions: Translator Y (-50px); Status: Completed; Clip: Rect (0, 100px, 150px, 0); }    

No comments:

Post a Comment