0
Can we rotate the image or a word?
Can we rotate the image or a word by using html,css or javascript??
8 Respuestas
+ 3
p{
position: absolute;
transform:rotate(90deg);
}
+ 2
you must not have space between number and 'deg' (unit)
+ 2
@Rajesh the gap between 90 and deg is the main reason for not rotating.
it should be:
rotate(90deg)
not rotate(90 deg)
You should use position absolute to see the whole text. Otherwise some text might be not seen.
+ 1
yes, use transform:rotate([x]deg); css property on the targeted element (where [x] is the number of degree you want to rotate it)
+ 1
It doesn't work😅
+ 1
You are wrong @Rajesh .It works:
https://code.sololearn.com/W27a18651a2a
0
provide your code: it should work, you may have other mistake(s) ;)
0
Thanks🤝❤️