Home Links

Effect bukvicy

In tipograficheskikh editions very much often it is possible to meet bukvicu - selected on the size and color the first letter of the first paragraph. Beautifully so it would be looked … to itself such at a site! The some people are limited to use of figures, but suddenly the visitor has disconnected show of pictures. Then there will be no bukvicy, a beauty: from it{her} remain only empty kvadratik. The decision of a problem becomes application CSS.

First-letter


The pseudo-element first-letter just also is engaged in management of the first letter of the set block. He searches for the first element and appropriates{gives} to him the specified values. Style of a spelling is very simple.


Example:

<Style type=text/css>

p:first-letter {font-size:200 %; color: lime; float: left}

</Style>

<p> Very much even the stylish paragraph </p>



In an example the letter ' O ' becomes green and increased twice, thus the text of her  will flow round from the right party . If the offer begins about inverted commas she together with the letter will be part first-letter.

Besides other a pseudo-element it is possible to share with classes and identifiers.


Example:

DIV.effect:first-letter {color: gold}

*Litera:first-letter {font-size:1.5; float:left}



First-line


Operates just as and first-letter. A difference only in objects of allocation: first-line visually changes the first line in the block necessary to you.


Example:

<Style type=text/css>

p:first-line {font-variant: small-caps}

</Style>

<p> Slightly raised line, <br>

But this part than especial is not allocated. </p>



The first line in the paragraph is written by small capital letters: very effective allocation of the beginning of clause{article} in any magazine.


" It would be interesting to use both pseudo-classes in one block " - you will say. And such in CSS it is possible. It is necessary to define{determine} only two times an element and the paragraph decorated in your style will not keep itself waiting.


Example:

<Style type=text/css>

DIV*beautiful:first-line {font-weight: bolder; color: * 0f0}

DIV*beautiful:first-letter {font-size:16px; font-style: oblique; color: * f00}

</Style>

<div id=beautiful> your clause{article} most <br> stat`jastaja clause{article} in the world. </div>




Home Page
Compression of pages on PHP
Functions of a paginal conclusion in PHP
PHP a script for automatic definition of the coding of the text:
XML Sapiens - magic of revival of sites
XML: opportunities and prospects
The data, their performance and forms of the user interface in XML
It is a little about OPML
Protection of mail
Importation of the information from an another's site on the site in the design
The forum working with database MySQL
The main page of a forum
Paginal conclusion from tables MSSQL with help PHP
Small cunnings
We print rationally or one more way of protection of the information
Site from within
The link - business not artful
Ideology HTML
Effect bukvicy
Ways of storage of the dynamic data