Home
Forum
Contact
Blog
info@qctutorials.com
Drop an Email
info@qctutorials.com
Home
Jscript
Html
Php
css
Sql
Ajax
Online Quiz
Online Quiz
Java
Java Basic
Java Experienced
jScript
Hadoop
C++
C++ Basic
C++ Experienced
ANSI C
ANSI C Basic
ANSI C Experienced
Cloud Computing
DB Management
Html
Linux
Linux Basic
Linux Experienced
Php
Php Basic
Php Experienced
Sql
PPT
Learn More
Web Development
Learn
HTML
Learn
HTML5
Learn
XHTML
Learn CSS
Learn
CSS3
Learn
PHP
Java Tutorials
Learn
JavaScript
Learn
JDBC
Learn
jQuery
C Tutorials
Learn
C
Learn
C++
Browser Scripting
Learn
HTML DOM
Learn
DHTML
Learn
VBScript
Learn
AJAX
Learn
jQuery
Server Scripting
Learn
SQL
Learn
MySQL
Learn
ASP
Learn
ADO
Learn
ASP.NET
XML Tutorials
Learn
XML
Learn
Schema
Learn
XSL-FO
Learn
XForms
Courses
CSS Units
« Previous Chapter
Next Reference »
Measurement Values
Unit
Description
%
percentage
in
inch
cm
centimeter
mm
millimeter
em
1em is equal to the current font size. 2em means 2 times the size of the current font. E.g., if an element is displayed with a font of 12 pt, then '2em' is 24 pt. The 'em' is a very useful unit in CSS, since it can adapt automatically to the font that the reader uses
ex
one ex is the x-height of a font (x-height is usually about half the font-size)
pt
point (1 pt is the same as 1/72 inch)
pc
pica (1 pc is the same as 12 points)
px
pixels (a dot on the computer screen)
Color Values
Value
Description
color_name
A color name (e.g. red)
rgb(x,x,x)
An RGB value (e.g. rgb(255,0,0))
rgb(x%, x%, x%)
An RGB percentage value (e.g. rgb(100%,0%,0%))
#rrggbb
A HEX number (e.g. #920692)
« Previous Chapter
Next Reference »
CSS
Basic
CSS HOME
CSS Syntax
CSS Id & Class
CSS How To
CSS
Styling
Styling Backgrounds
Styling Text
Styling Fonts
Styling Links
Styling Lists
Styling Tables
CSS
Box Model
CSS Box Model
CSS Border
CSS Outline
CSS Margin
CSS Padding
CSS
Advanced
CSS align
CSS Attribute Selectors
CSS Don't
CSS Dimension
CSS Display
CSS Floating
CSS Grouping/Nesting
CSS Positioning
CSS Pseudo-class
CSS Pseudo-element
CSS Image Gallery
CSS Image Opacity
CSS Image Sprites
CSS Navigation Bar
CSS Media Types
CSS
Examples
CSS Examples
CSS
References
CSS Colors
CSS Colornames
CSS Colorvalues
CSS Reference
CSS Reference Aural
CSS Web Safe Fonts
CSS Units
Have Any Suggestion? We Are Waiting To Hear from YOU!
Your Query was successfully sent!
CSS
Basic
CSS HOME
CSS Syntax
CSS Id & Class
CSS How To
CSS
Styling
Styling Backgrounds
Styling Text
Styling Fonts
Styling Links
Styling Lists
Styling Tables
CSS
Box Model
CSS Box Model
CSS Border
CSS Outline
CSS Margin
CSS Padding
CSS
Advanced
CSS align
CSS Attribute Selectors
CSS Don't
CSS Dimension
CSS Display
CSS Floating
CSS Grouping/Nesting
CSS Positioning
CSS Pseudo-class
CSS Pseudo-element
CSS Image Gallery
CSS Image Opacity
CSS Image Sprites
CSS Navigation Bar
CSS Media Types
CSS
Examples
CSS Examples
CSS
References
CSS Colors
CSS Colornames
CSS Colorvalues
CSS Reference
CSS Reference Aural
CSS Web Safe Fonts
CSS Units