<body>要素に CSSで背景画像を指定。
「no-repeat」で リピートさせすに、ウィンドウの右上に配置しています。
[↓ このページのHTML ↓]
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>タイトル</title>
<link rel="stylesheet" href="css/styleBG1.css">
</head>
<body>
<header>
<h1>背景に画像を入れる<span> - Sample1(no-repeat)</span></h1>
</header>
<div id="container">
<p>テキスト</p>
<pre>ソース</pre>
<pre>ソース</pre>
</div>
<footer>
Copyright © <a href="">ほんっとにはじめてのHTML5とCSS3</a> All Rights Reserved.
</footer>
</body>
</html>
[↓ このページのCSSの抜粋 ↓] body { width:100%; margin:0; padding:0; color:#666; font-family:Century Gothic,'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; line-height:1.6em; background:url(../img/bg1.gif) no-repeat right top #ede8ea; } ★このページのCSSを全部見る
背景の画像はこれ「bg1.gif」(実サイズです)