I have this css code for example:

body { background-image:url(имярисунка.gif); background-repeat: no-repeat; } 

    2 answers 2

    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> 
    • Well, what code do I need to register in order for me to have a picture in the right place? in body! - Kamilplus
    • So I changed the code. You need to use the background-position selector - Rules

    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.

    • the picture is still not displayed! or do i need to change something in css? it is necessary that the picture be background in the right place on the page! - Kamilplus
    • then you need to insert the div - Rules
    • check if you have specified the link correctly - inferusvv