+ 1
How to move text from left to right
6 Respostas
+ 2
use marquee tag in html
+ 2
Marquee moves from right to left .. I need to know how to move from left to right plz help me out
+ 1
<p align="left">Your content </p>
<p align="right">Your content </p>
<p align="center">Your content </p>
0
use align="right"
0
There are two ways to do that, for example,
1. Use inline styling
<p style="text-align: right;">Your text here</p>
2. Use CSS for styling element
p {
text-align: right;
}
0
marquee is an old way that only does one thing. and i'm not sure of this, but i think it might not work in some major browsers. marquee was added before CSS had animations. now CSS animations give the web developer a lot of control. but doing it in JavaScript works too. CSS will probably be easier to understand for a beginner. and CSS animations kan do a lot now. so u might not even want to bother with JavaScript to move an element on the web page but JavaScript gives u full control like if u want a paragraph (or image) to bounce like a ball, that wud be better to do in JavaScript. but simple one-directional animation is probly best with animated CSS. and CSS animation can repeat too .. i think. it's been a long time since i looked at using that.