<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=HTML%2FCSS%2FStyle_Basics%2Fmeasurement</id>
		<title>HTML/CSS/Style Basics/measurement - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=HTML%2FCSS%2FStyle_Basics%2Fmeasurement"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=HTML/CSS/Style_Basics/measurement&amp;action=history"/>
		<updated>2026-04-05T04:01:30Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=HTML/CSS/Style_Basics/measurement&amp;diff=5940&amp;oldid=prev</id>
		<title> в 09:21, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=HTML/CSS/Style_Basics/measurement&amp;diff=5940&amp;oldid=prev"/>
				<updated>2010-05-26T09:21:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 09:21, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=HTML/CSS/Style_Basics/measurement&amp;diff=5941&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=HTML/CSS/Style_Basics/measurement&amp;diff=5941&amp;oldid=prev"/>
				<updated>2010-05-26T08:17:25Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Absolute Units==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
Unit       Full Name&lt;br /&gt;
pt         A point&lt;br /&gt;
in         An inch&lt;br /&gt;
cm         A centimeter&lt;br /&gt;
pc         A pica&lt;br /&gt;
mm         A millimeter&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Absolute vs. Relative Measurements==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;Absolute vs. Relative Measurements&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
h1.absolute {font-size: 24pt; margin-left: 1.5in; margin-right: 1.5in; text-indent: .5in;}&lt;br /&gt;
h1.relative {font-size: 3.2em; margin-left: 15%; margin-right: 15%; text-indent: 5%;}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;absolute&amp;quot;&amp;gt;This headline uses all absolute measurements.&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;h1 class=&amp;quot;relative&amp;quot;&amp;gt;This headline uses all relative measurements.&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==A negative margin==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
            body {&lt;br /&gt;
                margin: 0;&lt;br /&gt;
            }        &lt;br /&gt;
            div {&lt;br /&gt;
                font-size: 24pt;&lt;br /&gt;
                width: 100%;&lt;br /&gt;
                color: white;&lt;br /&gt;
                background: black;&lt;br /&gt;
                margin: -10px;&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
            &amp;lt;div&amp;gt;&lt;br /&gt;
                This div stretches across the whole window and has a negative margin.&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Comparing em to Pixels==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
                      &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Em Measurement Comparison to Pixels&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
            p {&lt;br /&gt;
                background: pink;&lt;br /&gt;
                border: 1px solid black;&lt;br /&gt;
            }&lt;br /&gt;
            p#em-measurement {&lt;br /&gt;
                width: 12em;&lt;br /&gt;
                padding: 1em;&lt;br /&gt;
            }&lt;br /&gt;
            p#px-measurement {&lt;br /&gt;
                width: 192px;&lt;br /&gt;
                padding: 16px;&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;p id=&amp;quot;em-measurement&amp;quot;&amp;gt;&lt;br /&gt;
            This paragraph is 12em wide, with a 1em padding.&lt;br /&gt;
        &amp;lt;/p&amp;gt;&lt;br /&gt;
        &amp;lt;p id=&amp;quot;px-measurement&amp;quot;&amp;gt;&lt;br /&gt;
            This paragraph is 192 pixels wide, with 16 pixels of&lt;br /&gt;
            padding.&lt;br /&gt;
        &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Different measures==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
        &amp;quot;http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
  &amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Different measures&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
    body {&lt;br /&gt;
      font-size: 12px;&lt;br /&gt;
    }&lt;br /&gt;
    h1 { &lt;br /&gt;
      font: bold 1em/1.5em Georgia, serif;&lt;br /&gt;
      margin: 1em 0 0 0;&lt;br /&gt;
    }&lt;br /&gt;
    p {&lt;br /&gt;
      font: 1em/1.5em Georgia, serif;&lt;br /&gt;
      margin: 1em 0 0 0;&lt;br /&gt;
    }&lt;br /&gt;
    .one {&lt;br /&gt;
      margin: 0.5em 0 0 0;&lt;br /&gt;
      width: 28em;&lt;br /&gt;
    }&lt;br /&gt;
    .two {&lt;br /&gt;
      width: 33em;&lt;br /&gt;
    }&lt;br /&gt;
    .three {&lt;br /&gt;
      width: 38em;&lt;br /&gt;
    }&lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;h1&amp;gt;Georgia: 28em, 33em &amp;amp; 38em&amp;lt;/h1&amp;gt;&lt;br /&gt;
  &amp;lt;p class=&amp;quot;one&amp;quot;&amp;gt;&lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. &amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p class=&amp;quot;two&amp;quot;&amp;gt;&lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. &amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;p class=&amp;quot;three&amp;quot;&amp;gt;&lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. this is a test. this is a test. &lt;br /&gt;
  this is a test. &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==em is relative to the font size==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; em measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
            body {&lt;br /&gt;
                border: 1em solid black;&lt;br /&gt;
                margin: 0;&lt;br /&gt;
                padding: 10px;  &lt;br /&gt;
            }       &lt;br /&gt;
            div {&lt;br /&gt;
                font-size: 24px;&lt;br /&gt;
                height: 3em;&lt;br /&gt;
                border: 1em solid black;&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        The body&amp;quot;s border is 1em thick. &lt;br /&gt;
        &amp;lt;div&amp;gt;&lt;br /&gt;
            This font is 24 pixels tall and this div is 3 ems tall, &lt;br /&gt;
            which results in a div 72 pixels tall (3 * 24 = 72). Its &lt;br /&gt;
            border is 1em thick, or 24 pixels thick.&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==font-size: 1in==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; inch measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
          p {&lt;br /&gt;
            margin: 0;&lt;br /&gt;
          font-size: 1in;&lt;br /&gt;
      }&lt;br /&gt;
&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;&lt;br /&gt;
            This text is &amp;lt;em&amp;gt;supposed&amp;lt;/em&amp;gt; to be one inch tall.&lt;br /&gt;
        &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==font-size with various measurements==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;iso-8859-1&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;CSS Example&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=iso-8859-1&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;style rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
p {&lt;br /&gt;
  font-family: arial;&lt;br /&gt;
  font-size: 12pt;&lt;br /&gt;
}&lt;br /&gt;
p.px {&lt;br /&gt;
  font-size: 12px;&lt;br /&gt;
}&lt;br /&gt;
p.pt {&lt;br /&gt;
  font-size: 12pt;&lt;br /&gt;
}&lt;br /&gt;
p.pc {&lt;br /&gt;
  font-size: 2pc;&lt;br /&gt;
}&lt;br /&gt;
p.in {&lt;br /&gt;
  font-size: 0.5in;&lt;br /&gt;
}&lt;br /&gt;
p.cm {&lt;br /&gt;
  font-size: 1cm;&lt;br /&gt;
}&lt;br /&gt;
p.mm {&lt;br /&gt;
  font-size: 12mm;&lt;br /&gt;
}&lt;br /&gt;
p.em {&lt;br /&gt;
  font-size: 1.5em;&lt;br /&gt;
}&lt;br /&gt;
p.ex {&lt;br /&gt;
  font-size: 1.5ex;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&amp;lt;h1&amp;gt;Lengths&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;px&amp;quot;&amp;gt;The length used here is 12 px&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;pt&amp;quot;&amp;gt;The length used here is 12 pt&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;pc&amp;quot;&amp;gt;The length used here is 2 pc&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;in&amp;quot;&amp;gt;The length used here is 0.5in&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;cm&amp;quot;&amp;gt;The length used here is 1cm&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;mm&amp;quot;&amp;gt;The length used here is 12mm&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;em&amp;quot;&amp;gt;The length used here is 1.5em&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p class=&amp;quot;ex&amp;quot;&amp;gt;The length used here is 1.5ex&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==inch measurement==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; inch measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
          body {&lt;br /&gt;
            font-size: 10pt;&lt;br /&gt;
            color: white;&lt;br /&gt;
            text-align: center;&lt;br /&gt;
          }&lt;br /&gt;
        &lt;br /&gt;
          div {&lt;br /&gt;
            margin: 5px;&lt;br /&gt;
            background: black;&lt;br /&gt;
          }&lt;br /&gt;
        &lt;br /&gt;
            div#inches {&lt;br /&gt;
              width: 1in;&lt;br /&gt;
          height: 1in;&lt;br /&gt;
      }&lt;br /&gt;
      div#pixels {&lt;br /&gt;
        width: 96px;&lt;br /&gt;
        height: 96px;&lt;br /&gt;
      }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
            &amp;lt;div id=&amp;quot;inches&amp;quot;&amp;gt;&lt;br /&gt;
              &amp;amp;lt;--1in--&amp;amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
            &amp;lt;div id=&amp;quot;pixels&amp;quot;&amp;gt;&lt;br /&gt;
              &amp;amp;lt;--96px--&amp;amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==inch vs pixel==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; inch measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
          body {&lt;br /&gt;
            font-size: 10pt;&lt;br /&gt;
            color: white;&lt;br /&gt;
          }&lt;br /&gt;
        &lt;br /&gt;
          div {&lt;br /&gt;
            margin: 5px;&lt;br /&gt;
            background: black;&lt;br /&gt;
          }&lt;br /&gt;
        &lt;br /&gt;
            div#inches {&lt;br /&gt;
              width: 1in;&lt;br /&gt;
          height: 1in;&lt;br /&gt;
      }&lt;br /&gt;
      div#pixels {&lt;br /&gt;
        width: 96px;&lt;br /&gt;
        height: 96px;&lt;br /&gt;
      }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
            &amp;lt;div id=&amp;quot;inches&amp;quot;&amp;gt;&lt;br /&gt;
              &amp;amp;lt;--1in--&amp;amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
            &amp;lt;div id=&amp;quot;pixels&amp;quot;&amp;gt;&lt;br /&gt;
              &amp;amp;lt;--96px--&amp;amp;gt;&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==one inch tall==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; inch measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
          p {&lt;br /&gt;
            margin: 0;&lt;br /&gt;
          font-size: 1in;&lt;br /&gt;
      }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;&lt;br /&gt;
            &amp;lt;em&amp;gt;AAA&amp;lt;/em&amp;gt; one inch tall.&lt;br /&gt;
        &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==percentage measurement width==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
          body {&lt;br /&gt;
            margin: 0;&lt;br /&gt;
          }&lt;br /&gt;
        &lt;br /&gt;
          div {&lt;br /&gt;
            width: 100%;&lt;br /&gt;
            color: white;&lt;br /&gt;
            background: black;&lt;br /&gt;
          }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
            &amp;lt;div&amp;gt;&lt;br /&gt;
              This div stretches across the whole window.&lt;br /&gt;
            &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Percentages are more flexible because they can scale to the viewport.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
.container{&lt;br /&gt;
    width: 800px;&lt;br /&gt;
    height: 800px;&lt;br /&gt;
    background: pink;&lt;br /&gt;
}&lt;br /&gt;
* .box {&lt;br /&gt;
  float: right;&lt;br /&gt;
  overflow: auto;&lt;br /&gt;
  visibility: visible;&lt;br /&gt;
  width: auto;&lt;br /&gt;
  height: 100px;&lt;br /&gt;
  margin: 10px;&lt;br /&gt;
  padding: 10px;&lt;br /&gt;
  background: red;&lt;br /&gt;
}&lt;br /&gt;
* .small {&lt;br /&gt;
    float: left;&lt;br /&gt;
    right: 200px;&lt;br /&gt;
    width:  50%;&lt;br /&gt;
    height: 300px;&lt;br /&gt;
    background: yellow;  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt; &lt;br /&gt;
    &amp;lt;div class=&amp;quot;small&amp;quot;&amp;gt;this is a test. &amp;lt;BR/&amp;gt;this is a test. this is a test. this is a test. &amp;lt;/div&amp;gt; &lt;br /&gt;
    &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;this is a test&amp;lt;/div&amp;gt; &lt;br /&gt;
  &amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Relative size font-size: .75em==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?xml version = &amp;quot;1.0&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
   &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns = &amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;head&amp;gt;&lt;br /&gt;
      &amp;lt;title&amp;gt;User Styles&amp;lt;/title&amp;gt;&lt;br /&gt;
      &amp;lt;style type = &amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
         .note { &lt;br /&gt;
             font-size: .75em &lt;br /&gt;
          }&lt;br /&gt;
      &amp;lt;/style&amp;gt;&lt;br /&gt;
   &amp;lt;/head&amp;gt;&lt;br /&gt;
   &amp;lt;body&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;this is a test. &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;p class = &amp;quot;note&amp;quot;&amp;gt;this is a test. &amp;lt;/p&amp;gt;&lt;br /&gt;
   &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Relative Units==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
px      A pixel is the smallest unit of resolution.&lt;br /&gt;
em      An em unit corresponds directly to the font size of the reference element.&lt;br /&gt;
ex      The ex should be the height of a lowercase x. &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Relative units giving rise to unequal side margins==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;br /&gt;
        &amp;quot;http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot; lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
  &amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;Relative units giving rise to unequal side margins&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
    p { &lt;br /&gt;
      font-size: 1em;&lt;br /&gt;
      margin: 0 0 0 2em;&lt;br /&gt;
    }&lt;br /&gt;
    h1 { &lt;br /&gt;
      font-size: 1.5em;&lt;br /&gt;
      margin: 0 0 0 2em;&lt;br /&gt;
    }    &lt;br /&gt;
  &amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;div&amp;gt;&lt;br /&gt;
    &amp;lt;h1&amp;gt;A heading&amp;lt;/h1&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Some body text&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Testing 96 DPI Equals an Inch==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
&amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Pixels to Inches&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
            div {&lt;br /&gt;
                background: gray;&lt;br /&gt;
                border: 1px solid black;&lt;br /&gt;
                color: white;&lt;br /&gt;
                font: 9px monospace;&lt;br /&gt;
                margin: 15px;&lt;br /&gt;
            }&lt;br /&gt;
            div#inches {&lt;br /&gt;
                width: 1in;&lt;br /&gt;
                height: 1in;&lt;br /&gt;
            }&lt;br /&gt;
            div#pixels {&lt;br /&gt;
                width: 96px;&lt;br /&gt;
                height: 96px;&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;inches&amp;quot;&amp;gt;&amp;amp;lt;-- 1 Inch --&amp;amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
        &amp;lt;div id=&amp;quot;pixels&amp;quot;&amp;gt;&amp;amp;lt;-- 96 Pixels --&amp;amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==The body&amp;quot;s border is 1em thick==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; em measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
          body {&lt;br /&gt;
            border: 1em solid black;&lt;br /&gt;
            margin: 0;&lt;br /&gt;
            padding: 10px;  &lt;br /&gt;
          }       &lt;br /&gt;
            div {&lt;br /&gt;
                font-size: 24px;&lt;br /&gt;
                height: 3em;&lt;br /&gt;
                border: 1em solid black;&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        This is a test. &lt;br /&gt;
        &amp;lt;div&amp;gt;&lt;br /&gt;
            This font is 24 pixels tall and this div is 3 ems tall, &lt;br /&gt;
            which results in a div 72 pixels tall (3 * 24 = 72). Its &lt;br /&gt;
            border is 1em thick, or 24 pixels thick.&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==This font is 1.2 smaller than the default size, or pixels.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
                      &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot; xml:lang=&amp;quot;en&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;font-size&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
body {&lt;br /&gt;
    font-size: medium;&lt;br /&gt;
}&lt;br /&gt;
p#smaller {&lt;br /&gt;
    font-size: smaller;&lt;br /&gt;
}&lt;br /&gt;
p#smaller span {&lt;br /&gt;
    font-size: 12px;&lt;br /&gt;
}&lt;br /&gt;
span {&lt;br /&gt;
    background: mistyrose;&lt;br /&gt;
}        &lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;p id=&amp;quot;smaller&amp;quot;&amp;gt;&lt;br /&gt;
            This font is 1.2 smaller than the default size, or pixels.&lt;br /&gt;
            &amp;lt;span&amp;gt;this is a test. &amp;lt;/span&amp;gt;&lt;br /&gt;
        &amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==This font is 24 pixels tall and this div is 3 ems tall==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt; em measurement &amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;style type=&amp;quot;text/css&amp;quot; media=&amp;quot;all&amp;quot;&amp;gt;&lt;br /&gt;
            div {&lt;br /&gt;
                font-size: 24px;&lt;br /&gt;
                height: 3em;&lt;br /&gt;
                border: 1em solid black;&lt;br /&gt;
            }&lt;br /&gt;
        &amp;lt;/style&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
        &amp;lt;div&amp;gt;&lt;br /&gt;
            This font is 24 pixels tall and this div is 3 ems tall, &lt;br /&gt;
            which results in a div 72 pixels tall (3 * 24 = 72). Its &lt;br /&gt;
            border is 1em thick, or 24 pixels thick.&lt;br /&gt;
        &amp;lt;/div&amp;gt;&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==This paragraph has a 1 pixel thick, solid black border around it.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;html&amp;gt;&lt;br /&gt;
        &amp;lt;head&amp;gt;&lt;br /&gt;
            &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
            &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
        p {&lt;br /&gt;
            border: 1px solid black;&lt;br /&gt;
        }&lt;br /&gt;
            &amp;lt;/style&amp;gt;&lt;br /&gt;
        &amp;lt;/head&amp;gt;&lt;br /&gt;
        &amp;lt;body&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;&lt;br /&gt;
          This is a test. This is a test. &lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
        &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==This paragraph has a 200 pixel width and 10 pixels of padding==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;html&amp;gt;&lt;br /&gt;
        &amp;lt;head&amp;gt;&lt;br /&gt;
            &amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
            &amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
        p#paragraph-1 {&lt;br /&gt;
            padding: 10px;&lt;br /&gt;
            width: 200px;&lt;br /&gt;
            border: 1px solid black;&lt;br /&gt;
            margin: 10px;&lt;br /&gt;
            background: gray;&lt;br /&gt;
        }&lt;br /&gt;
            &amp;lt;/style&amp;gt;&lt;br /&gt;
        &amp;lt;/head&amp;gt;&lt;br /&gt;
        &amp;lt;body&amp;gt;&lt;br /&gt;
      &amp;lt;p id=&amp;quot;paragraph-1&amp;quot;&amp;gt;&lt;br /&gt;
          this is a test. &lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
        &amp;lt;/body&amp;gt;&lt;br /&gt;
    &amp;lt;/html&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Units of Length and Percentage==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Unit  Definition                                                           Example&lt;br /&gt;
em    relative to the height of the font used in the element               h1 {margin:0.5em}&lt;br /&gt;
ex    relative to the height of the character &amp;quot;x&amp;quot; for                      h2 {margin: 1ex} &lt;br /&gt;
      the font used by the element&lt;br /&gt;
  &lt;br /&gt;
px    size based on the number of screen pixels                            p {font-size:12px}&lt;br /&gt;
in    in for inches (1 in = 2.54 cm)                                       p {font-size: 0.5in}&lt;br /&gt;
cm    cm for centimetres                                                   p {font-size: 0.3cm}&lt;br /&gt;
mm    mm for millimetres                                                   p {font-size:3mm}&lt;br /&gt;
pt    pt for points (1pt = 1/72 inches)                                    p {font-size:12pt}&lt;br /&gt;
pc    pc for picas (1pc= 12 points)                                        p {font-size:1pc}&lt;br /&gt;
%     a percentage value relative to the value of the parent element,      p {line-height:120%} &lt;br /&gt;
      depending on the properties used&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==width:100% stretches an element to the width of its parent.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
.container{&lt;br /&gt;
    width: 800px;&lt;br /&gt;
    height: 800px;&lt;br /&gt;
    background: pink;&lt;br /&gt;
}&lt;br /&gt;
* .box {&lt;br /&gt;
  float: right;&lt;br /&gt;
  overflow: auto;&lt;br /&gt;
  visibility: visible;&lt;br /&gt;
  width: auto;&lt;br /&gt;
  height: 100px;&lt;br /&gt;
  margin: 10px;&lt;br /&gt;
  padding: 10px;&lt;br /&gt;
  background: red;&lt;br /&gt;
}&lt;br /&gt;
* .small {&lt;br /&gt;
    float: left;&lt;br /&gt;
    right: 200px;&lt;br /&gt;
    width:  100%;&lt;br /&gt;
    height: 300px;&lt;br /&gt;
    background: yellow;  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt; &lt;br /&gt;
    &amp;lt;div class=&amp;quot;small&amp;quot;&amp;gt;this is a test. &amp;lt;BR/&amp;gt;this is a test. this is a test. this is a test. &amp;lt;/div&amp;gt; &lt;br /&gt;
    &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;this is a test&amp;lt;/div&amp;gt; &lt;br /&gt;
  &amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==width: size an element by assigning pixels, ems, a percentage, or another fixed measurement to width.==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot;&lt;br /&gt;
  &amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;html xmlns=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;br /&gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;
.container{&lt;br /&gt;
    width: 800px;&lt;br /&gt;
    height: 800px;&lt;br /&gt;
    background: pink;&lt;br /&gt;
}&lt;br /&gt;
* .box {&lt;br /&gt;
  float: right;&lt;br /&gt;
  overflow: auto;&lt;br /&gt;
  visibility: visible;&lt;br /&gt;
  width: auto;&lt;br /&gt;
  height: 100px;&lt;br /&gt;
  margin: 10px;&lt;br /&gt;
  padding: 10px;&lt;br /&gt;
  background: red;&lt;br /&gt;
}&lt;br /&gt;
* .small {&lt;br /&gt;
    float: left;&lt;br /&gt;
    right: 200px;&lt;br /&gt;
    width:  20em;&lt;br /&gt;
    height: 300px;&lt;br /&gt;
    background: yellow;  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/style&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
  &amp;lt;div class=&amp;quot;container&amp;quot;&amp;gt; &lt;br /&gt;
    &amp;lt;div class=&amp;quot;small&amp;quot;&amp;gt;this is a test. &amp;lt;BR/&amp;gt;this is a test. this is a test. this is a test. &amp;lt;/div&amp;gt; &lt;br /&gt;
    &amp;lt;div class=&amp;quot;box&amp;quot;&amp;gt;this is a test&amp;lt;/div&amp;gt; &lt;br /&gt;
  &amp;lt;/div&amp;gt; &lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt; &lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>