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

CSS Font


CSS Tutorial » CSS Font

CSS font properties define the font family, style, weight, variant and size of a text.

font - Sets all the font properties in one declaration
font-family - Specifies the font family of text
font-style - Specifies the font style of text
font-size - Specifies the font size for text
font-weight - Specifies the weight for text
font-variant - Specifies whether or not a text: normal or small-caps

We can add CSS font properties 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
Note: Use external CSS instead.


How to create CSS Font - examples


You can try to execute the following code to change CSS Font on this page.
If you like this, you can simply copy the code and paste it on your website.


Example:
Example 1, How to create CSS Font - examples:
<!DOCTYPE html>
<html>
<head>
<style>
.text {
font-family: "Courier New", Courier, monospace;
font-size: 16px;
font-style: italic;
line-height: normal;
font-weight: bold;
font-variant: normal;
text-transform: capitalize;
text-decoration: none;
color: white;
border: none;
text-align: center;
padding: 12px 28px;
text-decoration: none; margin: 6px 4px;
background-color: #00CC66; /* Green */
}
</style>
</head>
<body>
<h3 align="center">How to make CSS Font</h3>
<p align="center">Change CSS Font on this editor end execute code</p>
<p align="center">
<div class="text">Your font text here</div>
<div style="font-family:Arial, Helvetica, sans-serif; font-size:14px; font-weight:bold"> inline css style - text </div>
</p>
<p align="center">Your text here.</p>
</body>
</html>



css font: family, size, color, style weight, family list, bold, list, stack, face, underline, shadow, spacing
CSS Font - 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.


Upload Image, display, edit and delete i...
Login Form with Image background...
How to Create an Image with Transparent ...
Portfolio Gallery Website with filtering...
Simple pagination script PHP MySQLi...
Center Image in div...
Image Hover Overlay Fade...
Sticky image / element / div on scroll...
Responsive images...
Create rounded image in HTML CSS...
Add border around image...
Position Text Over an Image HTML CSS res...
Create a Slideshow Images Gallery...
Create a Sticky Sidebar...
Search bar using CSS HTML...
Shrink Navigation Menu on Scroll...
How to Create Accordion HTML Templates...
Dropdown menu in the navigation bar...
Responsive Top Navigation Bar with mobil...
Split horizontal navigation bar...