HTML/CSS/Text/sub — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:17, 26 мая 2010
Changing ordered list markers to upper-roman
<source lang="html4strict">
<!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" xml:lang="en" lang="en"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Changing ordered list markers</title> <style type="text/css"> body { line-height: 1.5em; } ol { list-style-type: upper-roman; } </style>
</head> <body>
- Combine.
- Gradually.
- Place.
- Transfer.
- divide.
</body> </html>
</source>
font size for Subscript and Superscript
<source lang="html4strict">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title></title>
<style type="text/css" media="Screen"> sub {
vertical-align: -0.5em; font-size: 0.75em;
} sup {
vertical-align: 0.5em; font-size: 0.75em;
}
- .large {
font-size: 32px;
} sub {
font-size: 0.9em;
} sup {
font-size: 0.9em;
} </style> </head> <body>
A1 B2CE
</body> </html>
</source>
To subscript text use sub tags
<source lang="html4strict">
<?xml version = "1.0"?> <!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> </head> <body>
Only one download per hour is permitted.
</body>
</html>
</source>