topical media & game development

talk show tell print

basic-css-13-Exercises-exercise13-1.htm / htm



  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     <html>
          <head>
              <title></title>
              <style type='text/css'>
                  body {
                      height: 1000px;
                      margin: 0;
                      padding: 5px; 
                      background: url('basic-css-13-Examples-background-kayaking.jpg') no-repeat center fixed;  
                  }
                  div {
                      font: 18px sans-serif;
                      border: 1px solid black;
                      background: gray;
                      height: 400px;
                      padding: 5px;
                  }
                  div#column1 {
                      float: left;   
                      width: 150px;
                      margin: 0 5px 0 0;
                      background: url('kayaking2.jpg') no-repeat center fixed;
                  }
                  div#column2, div#column3 {
                      float: right;   
                      width: 150px;
                      margin: 0 0 0 5px;
                      background: url('kayaking2.jpg') no-repeat center fixed;
                  }
                  div#column4 {
                      margin: 0 334px 0 167px;
                      background: url('kayaking2.jpg') no-repeat center fixed;
                  }
                  div#footer {
                      height: 35px;
                      margin: 5px 0 0 0;
                      clear: both;
                  }
                  ul {
                      list-style: none;
                      margin: 0;
                      padding: 0;   
                  }
                  li {
                      margin-bottom: 5px;
                      height: 50px;
                      background: url('kayaking.jpg') no-repeat center fixed;
                      border: 1px solid black;  
                  }
                  a {
                      text-decoration: none;
                      color: black;
                      font-weight: bold;   
                  }
              </style>
          </head>
          <body>
              <div id='column1'>
                  Content of column 1.
                  <ul>
                      <li><a href='http://www.wrox.com'>Wrox</a></li>
                      <li><a href='http://www.google.com'>Google</a></li>
                      <li><a href='http://www.ebay.com'>Ebay</a></li>
                      <li><a href='http://www.amazon.com'>Amazon</a></li>
                      <li><a href='http://www.wiley.com'>Wiley</a></li>
                      <li><a href='http://www.yahoo.com'>Yahoo!</a></li>
                  </ul>
              </div>
              <div id='column2'>
                  Content of column 2.
              </div>
              <div id='column3'>
                  Content of column 3.
              </div>
              <div id='column4'>
                  Content of column 4.
              </div>
              <div id='footer'>
                  Content of footer.
              </div>
          </body>
      </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.