I have this css code for example:
body { background-image:url(имярисунка.gif); background-repeat: no-repeat; }
Write this code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Имя страницы</title> <style> body{ background-image:url(имя рисунка.gif); background-repeat:repeat-y; background-attachment: fixed; background-position: 50px 50px; } </style> </head> <body> </body> </html>
Connect the css file like this: <link rel = "stylesheet" href = "css / style.css" type = "text / css" media = "screen, projection" />
Only change the link to your css file. The picture will be the background of the page.
Source: https://ru.stackoverflow.com/questions/103607/
All Articles