CSS Tutorial

Shorthand Code

<!DOCTYPE html>
<title>Example</title>
<style>
  div {
    padding: 70px;
    height: 70px;
    width: 150px;
    background: url("/pix/samples/bg2.png") repeat fixed;
    overflow: auto;
  }
</style>
<div>
  This paragraph tag has been styled using the 'background' property, which is shorthand for setting multiple properties for an HTML element.