+ 1

Text alignment question

<p align="center">This is a text <br /> <hr width="10%" align="right" /> This is also a text. </p> why will the part of the paragraph after the hr element be aligned on the left? shouldn't it be aligned in the center?

2nd Nov 2016, 3:24 PM
Jakov Glavina
Jakov Glavina - avatar
2 ответов
+ 1
Use text-align:center; in css file
2nd Nov 2016, 4:34 PM
Nemanja Simović
Nemanja Simović - avatar
0
it depend on where you want your paragraph to be. if you want it to appear at the center, you simply, <p align = "center">Your text appear here <br />
12th Nov 2016, 11:44 AM
Rashid Mdaki
Rashid Mdaki - avatar