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

CSS Text Size


CSS Tutorial » CSS Text Size

The font-size property sets the size of a font.

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

Syntax:

Syntax: Internal & External CSS.
font-size:medium or xx-small or x-small or small or large or x-large or xx-large or smaller or larger or length or initial or inherit;

Syntax: Inline CSS inside of an HTML tag.
style="font-size:medium or xx-small or x-small or small or large or x-large or xx-large or smaller or larger or length or initial or inherit;">
Note: use external CSS instead.


How to create CSS Text Size - examples


You can try to execute the following code to change the font size in an HTML page.

Example:
Example 1, How to create CSS Text Size - examples:

<!DOCTYPE html>
<html>
<head>
<title>CSS Text Size - examples - example</title>
<style>
div.size1 {
font-size: 16px;
}

div.size2 {
font-size: large;
}

div.size2 {
font-size: 160%;
}
</style>
</head>
<body>
<h1>CSS Text Size. The font-size Property</h1>
<div class="size1">Here your text.</div>
<div class="size2">Here your text.</div>
<div class="size3">Here your text.</div>
<h2>CSS Text Size. The font-size Property using inline CSS</h2>
<p style="font-size:18px; color:blue;"> I'm a big, blue, <strong>strong</strong> paragraph </p>
</body>
</htm

Note: Use external CSS instead.


CSS Text Size Property, responsive, adjust, auto adjust, tag, attribute, percentage, adjust to fit, bootstrap
CSS Text Size - 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.