Mefth Loader Gif
Last Updated: 21-Nov-2021


CSS Text Alignment


HTML SOURCE CODE


<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>CSS course</title>
	<link rel="stylesheet" type="text/css" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Quicksand&display=swap" rel="stylesheet">
</head>
<body>

	<!-- ናይ ሎሚ ትምህርትና ብዛዕባ  Text-Alignment'ዩ-->
<p class="paragraph-st">This is CSS course for Begginers, Here we are in 13rd part of the course, Numbers are 1 2 3 4 5 6 7 8 9 10 11 12 13</p>

<p class="paragraph-nd">This is CSS course for Begginers, logo Here we are in 13rd part of the course, Numbers are 1 2 3 4 5 6 7 8 9 10 11 12 13</p>

<p class="paragraph-rd">This is CSS course for Begginers, Here we are in 13rd part of the course, Numbers are 1 2 3 4 5 6 7 8 9 10 11 12 13</p>

<p class="paragraph-th">This is CSS course for Begginers.</p>

</body>
</html>

CSS Source code of Text Alignment


.paragraph-st,.paragraph-nd,.paragraph-rd,.paragraph-th{
    font-size: 16px; /* ዓቐን ዕብየት ጽሕፈት */
    font-style: normal; /* ቅዲ ጽሕፈት */
	background-color: hsl(160, 80%, 50%); /* Background Color */
	font-family: 'Arial', sans-serif; 
}
	/*
	
	ካብዚኦም ድላይካ መሪጽካ ክትጥቀም ትኽእል ኢኻ፡         
	
Text Alignment
------------------------------------
Horizontal Text align
text-align: left  | right | center | justify;
-----------------------------------
Text Direction
direction: ltr | rtl;
-----------------------------------
Vertical Text Align	
vertical-align: baseline | length | sub | super | top | text-top | middle | bottom | text-bottom | initial | inherit;
	*/

.paragraph-st{
	font-weight: normal;
	text-align: right;
}
.paragraph-nd img{
     vertical-align: middle;
}
.paragraph-rd{
    text-align: center;
}
.paragraph-th{
	direction: rtl;
}	

The Result of the above Code is:

CSS Text Alignment

In Tigrinya Language (ብትግርኛ)



URL Copied
Share this              

Report for Comment or Reply




Mefth Loader gif

Be the first to ... Write comment.

You must Login to write Comment.

We've Recommended Articles for you