Home
Home Page
Than differ id and class
Creation WAP of a page
Passions around AJAX are heated
Answers to often asked questions on XHTML and HTML
The sanction of the screen and marking of pages
Two styles ajax'?
Business Macromedia lives
XHTML+CSS. Advantages are obvious
Microformats
The semantic network based on microformats
Fonts and CSS
CSS from And up to I
Properties of the text
Illumination of the link
Change of a background in the table
Fixation of fonts on page with the help of the table of styles
Krossbrauzernoe alignment on the center
Polling with help AJAX
HTML
Links
 

Fonts and CSS

Many are tormented at creation of a site. In many cases on a site it is required to apply a non-standard font or a hieroglyph. You download a beautiful font and start to impose page, but not all users have such fonts. The some people are not confused and simply create a graphic file, using the font necessary to them, but additional the schedule not always approaches page and at many her{it} and so suffices. But there is one suitable output{exit}! This output{exit} is uses of technology CSS (Cascading Style Sheets) or it is simple " Cascade tables of styles ". Usually CSS consists in a, created file, a page, but it is possible to create file CSS (.css) separately and to connect it{him} by a registration between tegom <head> thus:



<LINK href = "scooter.css" rel=stylesheet type=text/css>


And we with pomosh`ju CSS need to begin to rock and establish automatically a file of font True Type Font (.ttf), but installation will take place only in the event that the computer of the user will not find out a required font. First of all we should specify a place of position of a font. For this purpose we register between tegami <head> and </head> so:



<style>

p {font-family: URL a font (for example, www.domen.ru/fonts/font.ttf);}

</style>


Thus you can use any fonts on the site. But I advise strongly to not exercise the wit, as process zakachki and installation of a font too demands certain time. And if at you the font "weighs" 500kb and more it{he} is not recommended to be used in this case.