मेरे पहली बार कुछ बहुत ही इस के लिए नए कोड, लेकिन यहाँ उत्तर दे रहा है:
<div id="block">
<p id="rotate">Hello!!!</p>
</div>
<style>
#block{
width:500px;
height:500px;
display:block;
margin:auto;
border: 1px solid #000;
position:absolute;
}
#rotate {
position:relative;/* place the text relateve to whatever tag is devined as absolute */
left:130px;/* change these dimensions - can use left or right */
top:20px;/* change these dimensions can use top or bottom*/
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
}
</style>
स्रोत
2013-08-23 00:04:17
क्या आप वर्तमान में मौजूद कोड दिखा सकते हैं? क्या आपने सही तरीके से संरेखण का उपयोग करने का प्रयास किया था? – Siva