Hello,
I'd like to align text vertically, but some browsers (WebKit: Safari, Chome) fill svg object white background, if it is over the image.
I think this can be done using jQuery without any SVG and so on.
full example: here
<style type="text/css"">
.block {
cursor: default;
float: left;
overflow: hidden;
width: 120px;
height: 200px;
}
.block object, .block span {
display: block;
height: 180px;
width: 35px;
padding: 10px 5px;
}
.block img {
position: absolute;
width: 200px;
height: 250px;
}
.text {
color: #F4F4F4;
font: 18px arial, helvetica, verdana, tahoma, sans-serif;
position: relative;
width: 200px;
height: 200px;
}
/* For IE */
.text span {
filter: flipv() fliph();
writing-mode: tb-rl;
}
</style>
<div class="block">
<img src="http://img.sunhome.ru/UsersGallery/Cards/47/29135153.jpg" alt="" title="" />
<div class="text">
<![if !IE]>
<object type="image/svg+xml" data="data:image/svg+xml;charset/utf-8,
<svg xmlns='http://www.w3.org/2000/svg'>
<text x='-195' y='25' font-family='arial' font-size='18' fill='#F4F4F4' transform='rotate(-90)' text-rendering='optimizeSpeed'><![CDATA[1. Leona Lewis]]></text>
</svg>">
</object>
<![endif]>
<!--[if IE]><span>Leona Lewis</span><![endif]-->
</div>
</div>