Testing 96 DPI Equals an Inch : measurement : Style Basics HTML CSS TUTORIALS


HTML CSS TUTORIALS » Style Basics » measurement »

 

Testing 96 DPI Equals an Inch


 
<!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'>
    <head>
        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
        <title>Pixels to Inches</title>
        <style type='text/css'>
            div {
                background: gray;
                border: 1px solid black;
                color: white;
                font: 9px monospace;
                margin: 15px;
            }
            div#inches {
                width: 1in;
                height: 1in;
            }
            div#pixels {
                width: 96px;
                height: 96px;
            }
        </style>
    </head>
    <body>
        <div id='inches'>&lt;-- Inch --&gt;</div>
        <div id='pixels'>&lt;-- 96 Pixels --&gt;</div>
    </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Style Basics
» measurement