Saturday, October 19, 2013

Filled Under:

how to align text by using CSS.

Hey everyone today we will learn how to align our text by using CSS.
Let me explain what align means in HTML.If you want your heading to appear in the center of the page then you can write align="center" and your text will appear in the center,in the same way you can align your text on left and right side of the page as well.
This is very simple,just copy and paste the code and you will see how you can align the text.

<html>
<body>

<h1 style="text-align:center;">Blogs</h1>
<p>Hey everyone.</p>

</body>
</html>

So this is how we align the text,"text-align:" this is the keyword and after the colon you can write where you want your text to appear.
This is how you can align your text on the right or left side.
<h1 style="text-align:left;">Blogs</h1>
<h1 style="text-align:right;">Blogs</h1>






0 comments:

Post a Comment