Im using this css property to clip the content inside a div:
div {
position: absolute;
clip: rect(0px,200px,100px,0px);
overflow: none;
width: 200px;
}
At the momment you see the height and width of the clipping area is fixed to 100×200. I want to mantein the fixed width but I need the height to be auto, I mean, relative to the div content. Is this possible? I tried:
rect(0px,200px,auto,0px)
rect(0px,200px,100%,0px)
But they seam to not work. Any suggestions?
Is
nonea valid value ofoverflow? Should it not behidden?http://www.w3schools.com/cssref/pr_pos_overflow.asp