AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP, SQL

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

Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.


CSS Scrollbar Horizontal
CSS Scrollbar in Div
CSS Scrollbar Firefox
CSS Style Scrollbar
CSS Style Text
CSS background color
CSS Div Id Class
CSS Text Wrap
CSS text-align
CSS Text Decoration
CSS Text Shadow
CSS Text Color
CSS Text Bold
CSS Text Size
CSS background image full
CSS background opacity
CSS border radius
CSS rounded corners
CSS font color
CSS Class & ID
CSS align image center
CSS align content
CSS link color
CSS Text Style
CSS Text Font Size
CSS max width &height
CSS width and height
CSS Margin
CSS Padding
CSS Border Style
CSS background
CSS in HTML
Basic Syntax of CSS
CSS Introduction
Online Editor
ONLINE EDITOR

news templates


COLOR PICKER

news templates
This tool makes it easy to create, adjust, and experiment with custom colors for the web.


HTML Templates
news templates
Magnews2 is a modern and creative free magazine and news website template that will help you kick off your online project in style.


CSS HTML Layout
news templates
Find here examples of creative and unique website layouts.


Free CSS HTML Menu
news templates
Find here examples of creative and unique website CSS HTML menu.