0

Can we rotate the image or a word?

Can we rotate the image or a word by using html,css or javascript??

6th Jun 2021, 6:08 AM
Rajesh✊✌️
Rajesh✊✌️ - avatar
8 Respostas
+ 3
p{ position: absolute; transform:rotate(90deg); }
6th Jun 2021, 10:02 AM
JaScript
JaScript - avatar
+ 2
you must not have space between number and 'deg' (unit)
6th Jun 2021, 6:29 AM
visph
visph - avatar
+ 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.
6th Jun 2021, 6:29 AM
The future is now thanks to science
The future is now thanks to science - avatar
+ 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)
6th Jun 2021, 6:12 AM
visph
visph - avatar
+ 1
It doesn't work😅
6th Jun 2021, 6:23 AM
Rajesh✊✌️
Rajesh✊✌️ - avatar
+ 1
You are wrong @Rajesh .It works: https://code.sololearn.com/W27a18651a2a
6th Jun 2021, 6:27 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
provide your code: it should work, you may have other mistake(s) ;)
6th Jun 2021, 6:24 AM
visph
visph - avatar
0
Thanks🤝❤️
6th Jun 2021, 6:29 AM
Rajesh✊✌️
Rajesh✊✌️ - avatar