This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
CSS
CSS <before> Element
CSS <after> Element
CSS <right> Class
CSS <left> Class
CSS <lang> Class
CSS <focus> Class
CSS <first> Class
CSS <first-child> Class
CSS <active> Class
CSS <z-index> Property
CSS <word-spacing> Property
CSS <width> Property
CSS <white-space> Property
CSS <visible> Property
CSS <vertical-align> Property
CSS <unicode-bidi> Property
CSS <top> Property
CSS <text-transform> Property
CSS <text-shadow> Property
CSS <text-indent> Property
<< BizTalk
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :3165

 

The Pseudo Element: first-letter (CSS Reference)

Introduction

The pseudo element first-letter can be used to change the style of the first-letter of a word. This can be useful if you are starting a new chapter and want to highlight the first character of the word. Many publishers do that also with articles. There is also an element called first-line, which works the same as the first-letter except with the different that you change the style of the complete first line.

Example

<!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>Pseudo element: first-letter demonstration</title>

<style type="text/css">

p:first-letter

{

    font-size:x-large;

    color:red;

    font-wight:bold;

}

</style>

</head>

<body>

<h1>Pseudo element: first-letter demonstration</h1>

<font face="verdana">

<p>This is the first paragraph of the page. As you can see the first-letter element highlights the first character of the

word. Nice feature eh?

</p>

<p>Of course you can do as with other paragraphs too :)</p>

</font>

</body>

</html>

Output


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP