how to show only a portion( in this case is to hide the watermark) of image like on 9gag.com,
I tried to use clip in css, but it requires image to be position absolute, which is a no no for me.
is there other way to do this in css? js is ok too.
thank you.
////////////////////////////////////////////////
here is the solution to my problem, took me a while to figure out i can use a margin attribute, silly me
img {margin:0 auto -33px;}
Yes, use the CSS overflow property. You can do
overflow: hidden;to clip out entities beyond the width and height of a container.You can learn more at W3schools: http://www.w3schools.com/cssref/pr_pos_overflow.asp
They even have an example for you to try out.