- 8
Align the text of the paragraph to the right:
<html> <body align="center"> <div align =" "> <p>This is a line of text</p> </div> </body> </html>
8 Antworten
+ 4
/** CSS **/
p {
text-align: right;
}
/** HTML **/
<p>Right aligned text.</p>
I wouldn't recommend using inline css, when your code base increases it's best to keep css in their separate files.
+ 3
You can use <div align = "right"> for aligning the text of paragraph tag to right.
+ 2
Add align="right" to <p>
<html>
<body align="center">
<p align="right">This is a line of text</p>
</div>
</body>
</html>
+ 1
Align the text of the paragraph to the right:
<html>
<body align="center">
<div align="right">
<p>This is a line of text</p>
</div>
</body>
</html>
0
<html>
<body align="center">
<div align="right">
<p>This is a line of text</p>
</div>
</body>
</html>
0
<html>
<body align="center">
<div align="right">
<p>This is a line of text</p>
</div>
</body>
</html>
0
0
<html>
<body align="center">
<div align ="right">
<p>This is a line of text</p>
</div>
</body>
</html>