Set font size to 1.2em : font size « Text « HTML / CSS

HTML / CSS
1. Background Attributes
2. Basic Attributes
3. Basic Tags
4. Box Model
5. CSS Attributes and Javascript Style Properties
6. CSS Controls
7. Form Attributes
8. Form Style
9. Form Tags
10. Frame Attributes
11. Frame Tags
12. HTML
13. IE Firefox
14. Images
15. Layout
16. Layout Attributes
17. Link Attributes
18. Link Tags
19. List Attributes
20. List Style
21. List Tags
22. Marquee Attributes
23. Meta Tags
24. Microsoft Attributes
25. Object Attributes
26. Object Tags
27. Reference
28. Style Basics
29. Styles Tags
30. Table Attributes
31. Table Style
32. Table Tags
33. Text
34. Text Attributes
35. Text Tags
36. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
HTML / CSS » Text » font size 
Set font size to 1.2em
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
p .initcap {
 font-size: 1.2em;
 background-color: black;
 color: white; 
}
</style>
</head>

<body>
  <p><span class="initcap">O</span>nline. This is a test. This is a test. 
  This is a test. This is a test. This is a test. This is a test. This is a test. 
  This is a test. This is a test. This is a test. This is a test. This is a test. </p>
</body>
</html>

 
Related examples in the same category
1. font size with minimal values
2. Set font size to 90% for paragraph
3. Set font size to 120% for H1
4. font size percentage smaller
5. font size percentage larger
6. font size with relative keyword
7. font size and relative keyword: larger and large
8. font size relative larger
9. font size relative smaller
10. font-size:20px; assigns a length of 20 pixels to font-size.
11. Set font size to small
12. Font size with calculation
13. font-size: xx-small
14. Two typefaces with different x-heights shown at the same font-size
15. Set body font size
16. Nested font size
17. Paragraph text is black and in 12pt font
18. Font size by Absolute Sizes
19. Font size by Pixels
20. Font size by Points
21. Relative Font Sizes
22. Font size by Ems
23. Font size by Ex
24. Font size by percentage
25. Relative font size
26. This font is 24 pixels tall and this div is 3 ems tall
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.