HOME | PHP Tutorial | CSS
facebook icon
HTML Tutorial

CSS Tutorial

CSS Text Style - Text Font Size - Text Align

CSS text properties allow to establish several CSS text styles such as: text size font, alignment, color, spacing, decoration etc. easily an effectively.

CSS Text Font Size

The text font size property is used to set how big or small will be the text of your page. CSS text font size is specified by:
font-size - like "12px or 16px or 36px how you like"
font-size - like "small, medium or large - like"
font-size - like "x-large or xx-large"
Example 1:
font-size: 18px;
width: 450px;
height: 210px;
border: 1px solid #73AD21;
background-color: red;

CSS Text Style

The text style property is used to set font-style: as normal, italic or oblique the text of your page. CSS text style is specified by:
font-style - like "normal"
font-style - like "italic"
font-style - like "oblique"
font-style: italic;
font-size: 18px;
height: 450px;
max-height: 250px;
border: 1px solid #73AD21;
background-color: red;

CSS Tsxt Align

The text-align property is used to set the horizontal alignment of a text as left, right, centered or justified.
div-box3 {
width: 50%;
height: auto;
h1 {
text-align: center;
p {
text-align: left;
For text-align: justify, each line is stretched - every line has equal width.

CSS Text Style, Text Font Size and Text Align CSS Text Style - Text Font Size - Text Align - css tutorial

16. CSS3 Tutorial - An Ultimate Guide for Beginners
CSS Tutorials for Beginners - Learn the fundamentals of the latest CSS3 style sheet language in simple and easy steps and create beautifully designed website.

3303. CSS Class and ID, The Difference Between ID and Class, css tutorial
CSS Class and ID, The Difference Between ID and Class css tutorial

2230. CSS Tutorial - External, internal or inline
The inline CSS code is the one that goes inside the head section of the HTML document. This is very useful when you want to give a specific page, his own custom style. The is no difference between the CSS code that you place inside an external file and t

3188. CSS Text Style Bold - Text Decoration - Text Shadow, css tutorial
CSS Text Style Bold - Text Decoration - Text Shadow css tutorial

3192. Basic Syntax of CSS - How to Code CSS, css tutorial
Basic Syntax of CSS - How to Code CSS css tutorial

825. Features of w3resource CSS tutorials


Your add here
How to get PHP errors to display?
How to prevent sql injection in php mysqli
How do I get PHP errors to display - PHP error_reporting()
mysql_query(): The mysql extension is deprecated and will be removed i
Function eregi_replace() is deprecated in php - How to fix
PHP delete an element from an array
Uncaught Error: Call to undefined function MYSQL_NUM_ROWS() in
Deprecated: mysql_connect() mysql extension is deprecated and will be
mysqli_fetch_array() expects parameter 1 to be mysqli_result boolean g
SQL IN Operator - example
SQL like syntax and example
SQL WHERE AND & OR multiple conditions
SQL create table primary key autoincrement
PHP mysqli_connect () Function
SQL COUNT(), AVG() and SUM() Functions
Display data from SQL database with MySQLi into php - html table
SQL mysql order by columns, by date, by asc, by desc, random with PHP
PHP mysqli_query() Function - mysqli query
SQL delete row - SQL delete table
SQL update - SQL update select
Insert into SQL - Insert into table SQL - Insert data in sql
Login in PHP - simple login script with PHP MYSQL