Ето и кодовете
HTML Code
Code: Select all
<!DOCTYPE html>
<html>
<body [color=#008000]style=[/color]"background-image:url[color=#BF00FF]('Background.jpg')">[/color]
<h2>Background Image</h2>
<p>By default the background image will repeat itself if it is smaller than the element where it is specified, in this case the BODY element.</p>
</body>
</html>
Code: Select all
<!DOCTYPE html>
<html>
<head>
<style>
html {
background: url(img_background.jpg) no-repeat center fixed;
background-size: cover;
}
body {
color: white;
}
</style>
</head>
<body>
<h1>Full Page Background Image</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.</p>
</body>
</html>
Благодаря ви предварително за помоща!