Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    4xx
    4xx is offline
    New to the CF scene
    Join Date
    May 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I can't see my background image

    Help
    "I'm a newbie...be gentle"

    I'm traying to learn HTML/CSS by my self using the websites tutorials...+ English it's not my first languge. Please be gentle.

    Here is the css code I did.

    <html>

    <head>
    <stile>

    body

    {


    background-image: url('image/whitedesk.gif');

    background-reapeat: no-repeat;
    }



    font-family: arial, helvetica, sans-serif;

    font-size: 80%;

    color: black;

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    Code:
    <stile>
    ...
    
    ...
    background-reapeat: no-repeat;
    ...


    Welcome to the forum, but ... Before coding something be so gentle and open a book about that language or read an online tutorial about that.

    CSS:
    http://www.w3schools.com/css/default.asp

    CSS codes are to be used:

    1. locally, as style (that means inside the HTML tags). Not recommended.
    Code:
    <body style="background-image: url(image/whitedesk.gif);background-repeat: no-repeat;">
    ...
    2. embedded, usually in the HEAD of the document. Embedded CSS codes must be nested within the specific markers:
    Code:
    <head>
    <style type="text/css">
    body{
    background-image: url(image/whitedesk.gif);
    background-repeat: no-repeat;
    }
    </style>
    </head>
    3. external, within CSS type files
    Code:
    <head>
    ...
    <link href="mycss.css" rel="stylesheet" type="text/css">
    ...
    </head>
    where myccs.css looks like:
    Code:
    body{
    background-image: url(image/whitedesk.gif);
    background-repeat: no-repeat;
    }
    Last edited by Kor; 05-11-2010 at 04:43 PM.
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

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