I'm trying to make "skewed" shape as viewport window for pictures
Pic1 is what I want to make (I don't know how much pictures I will have)
Pic2 is the picture I use as base (background)
I'm using viewport window in CSS
.town_window{
width:190px;
height:165px;
-webkit-transform: skew(20deg);
-moz-transform: skew(20deg);
-o-transform: skew(20deg);
color: grey;
opacity: 0.7;
overflow: hidden;
}
#caluga{
background:url(images/caluga.jpg) no-repeat;
width: 277px;
height: 190px;
}
I'm getting scewed picture (I understand why), but I cannot figure out how to accomplish this task.
Please help ))
Thanks in advance, Alexei