HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

CSS Style Text


CSS Tutorial » CSS Style Text

CSS style text specifies as:
font-family
font-size
color
font-style
font-weight
text-transform
font-variant
text-decoration
letter-spacing
line-height
text-align
text-indent
text-shadow

We can add Style text as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External & External - by using an external CSS file as style.css
Syntax:

Internal Syntax: CSS Style Text.
.selector_name { property: value; }

Inline Syntax: CSS Style Text.
style="property:value;"
Note: use external CSS instead.


How to create CSS style text align center - examples


You can try to execute the following code to change text align centerproperty of a div on this page.

Example:
Example 1, How to create CSS style text align center - examples:

  <!DOCTYPE html>
<html>
<head>
<title>How to create CSS style text align - examples - example</title>
<style>
#first_box {
width: 300px; text-align:right;
border: 2px solid #00FF00;
background-color: #FFFF99;
}
.second_box { text-align:right; width: 270px;
border: 2px solid #0000FF;
margin-top: 18px;
background-color: #FFCC99; }
</style>
</head>
<body>
<div id="first_box"> <h1>CSS style text align right</h1> text here right
<div style="text-align:center; background-color: #FF0099;">inline CSS text align center.</div> </div>
<div class="second_box">internal CSS text right</div>
</body>
</html>
Note: Use external CSS instead.


How to create CSS style text size, color and bold - examples


You can try to execute the following code to change text size, color and bold property of a div on this page.

Example:
Example 1, How to create CSS style text size, color and bold - examples:

  <!DOCTYPE html>
<html>
<head>
<title>How to create CSS style text size, color and boldn - examples - example</title>
<style>
#first_box {
width: 300px; font-size: 14px;
font-weight: bold;
color: #0033FF;
border: 2px solid #00FF00;
background-color: #FFFF99;
}
.second_box { width: 270px;
font-size: 18px;
font-weight: bold;
color: #0033FF;
border: 2px solid #0000FF;
background-color: #FFCC99; }
</style>
</head>
<body>
<div id="first_box">
<h1>CSS style text size, color and bold - examples</h1>
text here text size, color, bold
<div style="font-size: 19px; font-weight: bold; color: #0033FF;
background-color: #FF0099;">inline text text size, color, bold.</div> </div>
<div class="second_box">internal CSS text</div>
</body>
</html>
Note: Use external CSS instead.

css style text, align, size, color, bold, as link, indent, input, underline, align center CSS Style Text - css tutorial

2590. Android tutorial for beginners - Learn Android Programming and how to develop android mobile phone and ipad applications.
Online CSS Tutorial pdf, what is CSS, Online Courses, Classes, Training, Tutorials for Beginners - agernic.com is a free interactive Code, Tags, Example, CSS, Editor, Online Courses, Training for beginners
http://www.agernic.com/android-tutorial.html

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
https://www.agernic.com/css-tutorial/difference-between-id-and-class.html

2226. CSS Tutorial - Build a navigation bar
Normally to create a navigation bar (horizontal or vertical menu) the HTML lists are a good start point. You can then use CSS to give it some awesomeness. You will also use a link inside the li element. So let
https://tutorialehtml.com/en/css-tutorial-build-a-navigation-bar/

3179. CSS align content Property - CSS align text - how to create, css tutorial
CSS align content Property - CSS align text - how to create css tutorial
https://www.agernic.com/css-tutorial/css-align-content-property-css-align-text-how-to-create.html

3014. CSS width and height - CSS Properties - Dimensions units, css tutorial
CSS width and height - CSS Properties - Dimensions units css tutorial
http://www.agernic.com/css-tutorial/css-width-and-height-properties-dimensions-units.html

813. CSS box model - CSS tutorials - w3resource

https://www.w3resource.com/css/concepts/box-model.php

Your add here
PHP strtolower() function

PHP print() function

PHP printf() function

PHP html_entity_decode() function

PHP md5() function

PHP ltrim() function

PHP str_replace() function

PHP substr() function

PHP str_repeat() function

PHP lcfirst() function

PHP htmlspecialchars() function

PHP similar_text() function

PHP strlen() function

PHP htmlspecialchars_decode() function

PHP implode() function

PHP wordwrap() function

CSS Class and ID, The Difference Between ID and Class
CSS Font Size
HTML Table Rowspan and Colspan
CSS Padding, top, bottom, left, right
PHP Array - What is an Array?
SQL update - SQL update select