+ Reply to Thread
Results 1 to 2 of 2

Thread: background-image does not work

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    35

    background-image does not work

    I have that html code that displays a background image on the page , but i can`t figure why it does not wanna work :
    Code:
    <html>
        <head>
            <title>MyTitle</title>
            <style type="text/css">
                body{
                     <!-- background-color:green; -->
                     background-image:url("background.jpg");
                     <!-- color:white; -->
                    }
            </style>
        </head>
        <body>
        </body>
    </html>

  2. #2
    <!-- that command syntax is invalid -->
    Use /* comment */ instead.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts