Today, We are going to share how to align text in CSS. Here are three examples of CSS alignment property (left, center, justify). Copy and paste the CSS code below. Hope it helps you to learn about CSS property.

LEFT

#text {
font-size:14px;
color:#333;
text-align:left;
}

Hello, Welcome to P&T IT BROTHER’s website! We are here to share our computer knowledges. Hope this is helpful for you!

CENTER

#text {
font-size:14px;
color:#333;
text-align:center;
}

Hello, Welcome to P&T IT BROTHER’s website! We are here to share our computer knowledges. Hope this is helpful for you!

JUSTIFY

#text {
font-size:14px;
color:#333;
text-align:justify;
}

Hello, Welcome to P&T IT BROTHER’s website! We are here to share our computer knowledges. Hope this is helpful for you!

Shares
Share This