Adding background images and indentation : background image : Box Model HTML CSS TUTORIALS


HTML CSS TUTORIALS » Box Model » background image »

 

Adding background images and indentation


 

<?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>
      <title>Background Images</title>

      <style type = "text/css">

         body  background-image: url(http://www.navioo.com/style/logo.png);
                 background-position: bottom right;
                 background-repeat: no-repeat;
                 background-attachment: fixed; }

         p     font-size: 18pt;
                 color: #aa5588; 
                 text-indent: 1em;
                 font-family: arial, sans-serif; }

         .dark font-weight: bold; }

      </style>
   </head>

   <body>

      <p>this is a test. this is a test. this is a test. 
      <span class "dark">this is a test. this is a test. </span> 
      this is a test. this is a test. this is a test. this is a test. 
      </p>

   </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Box Model
» background image