0

How to align the second phrase?

I mean : how to align the phrase after <hr /> element

22nd Jul 2019, 10:33 PM
Mohamed Ali
Mohamed Ali - avatar
3 Réponses
+ 4
1. use div element to enclose the content. 2. use class name to assess the div element. demo for you : https://code.sololearn.com/W5I5i5124nIr/?ref=app
23rd Jul 2019, 7:55 AM
Gordon
Gordon - avatar
0
Yeah thx 👍,but why did you use (clase) instead of (align="center")?
23rd Jul 2019, 8:29 AM
Mohamed Ali
Mohamed Ali - avatar
0
it is still align = "center" for attribute class = second in css tab, i have .second{ text-align : center; } CSS style is always preferred to HTML for styling contents.
23rd Jul 2019, 1:17 PM
Gordon
Gordon - avatar