Why when i try to code like that, the line of <hr> is moved to the right, not left | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why when i try to code like that, the line of <hr> is moved to the right, not left

<p align="center"> This is a text. <hr width="30px" align="right" align="left" /> </p>

3rd Dec 2017, 7:47 AM
Tran Huu Dang
Tran Huu Dang - avatar
4 Answers
+ 2
I think it should be read from left to right and the attribute align ="left" must be apply to html. Anyone think so.
3rd Dec 2017, 8:24 AM
Tran Huu Dang
Tran Huu Dang - avatar
+ 2
I"ll try it on pc once again. I'm not sure how it work.
3rd Dec 2017, 8:32 AM
Tran Huu Dang
Tran Huu Dang - avatar
0
Because you put align="right" first then align="left" and program is confused then. You must delete align="right".
3rd Dec 2017, 8:20 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar
0
No, it is reading from left line 30 pixels if you delete align="right, otherwise it is reading from right line 30 pixels
3rd Dec 2017, 8:27 AM
Dejan Francuz🥇
Dejan Francuz🥇 - avatar