body要素の親にあたるhtml要素にもbackgroundを指定しています。
このサンプルのスタイルは次のように記述しています。
* { margin: 0; padding: 0; } html { height : 100%; background-image : url('img/line1.gif'); background-position: 0px 30px; background-repeat: repeat-x; } body { height : 100%; background-image:url('img/line.gif'); background-position: 30px 0px; background-repeat: repeat-y; } h1 { margin-left: 50px; padding-top: 50px; } p,pre { margin-left: 50px; margin-top: 1em; }