Computer Science, asked by durgashrestha1620, 11 months ago

how to align text in css(class10)​

Answers

Answered by sandeepbitten
0

Explanation:

align use for align set to: center, left right

Answered by sougatap57
0

Answer:

In CSS to align a text, we have to use the property text-align. This property can be used to align the text in different directions of the webpage like center, left, right,  justify.  

For Example

Here is a code :-

<!DOCTYPE html>

<html>

   <head>

<title>Text-align</title>

<style>

   p{

       text-align:right;

   }

</style>

</head>

<body>

   <p> text align</p>

</body>

   

The output of the code:-

We will see the text to be displayed on the right side of the webpage.

Similar questions