So,
I was looking into expanding images to make them fill the width, given a certain height.
I decided I wanted to do something along the lines of reflecting the image both left and right.
However, I can only get it to apply to one side of the image.
HTML:
<div class="image">
<img src="http://i.imgur.com/LukIbK7.jpg" />
</div>
css:
.image {
width:100%;
margin:auto;
text-align:center;
}
.image img {
width:50%;
-webkit-box-reflect: left 0px -webkit-gradient(linear, right top, left top, from(transparent), color-stop(20%, transparent), to(rgba(255, 255, 255, 0.5)));
}
I've also tried using :before as directed in a similar post (to do with multiple borders) here
If there is also another solution, please inform me (without having to actually edit the images).
Essentially, I wanted the result css to be:
.image img {
width:50%;
-webkit-box-reflect: left 0px -webkit-gradient(linear, right top, left top, from(transparent), color-stop(20%, transparent), to(rgba(255, 255, 255, 0.5)));
-webkit-box-reflect: right 0px -webkit-gradient(linear, left top, right top, from(transparent), color-stop(20%, transparent), to(rgba(255, 255, 255, 0.5)));
}
To achieve:
But obviously it will just overwrite it.