Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Oct 2003
    Posts
    1
    Member #
    3584
    Ok, I am new to web design and when i try to put a background image in using a css, the image does not show up.
    The css says:
    body { background-image: url("space1.jpg") }

    I am positive that I am typing the right image name, what is wrong here?

    The link to the external css is as follows:
    <link rel="stylesheet" type="text/css" href="style.css" />

    I am also positive that the name and extension of the style sheet are right, and the syntax looks good too. Is anyone else ever had this problem?

    Please help me somebody.........

    PS( I am willing to give away some turtle dollars to anyone who fixes my problem)

  2.  

  3. #2
    Bic
    Bic is offline
    Junior Member Bic's Avatar
    Join Date
    Oct 2003
    Posts
    28
    Member #
    3513
    body {
    background-image : url(space1.jpg)
    }
    BOXWARE.NET Productions - Tomorrow's not promised, so lookout for the rampaging beer cans.

  4. #3
    Junior Member
    Join Date
    Oct 2003
    Location
    New York
    Posts
    13
    Member #
    3580
    yeah your syntax looks good for your CSS, whether you do in in one line or multiply. Either way is fine. The link tag in your html looks perfect too. Since it is still not working I would suggest the following.


    • Make sure that your CSS is working properly. Sometimes if you make a mistake (even in a completely different part of it) your browser may completely ignore the CSS file.
    • Make sure that style.css is in the same directory as your html file
    • Make sure the space1.jpg is also in that same directory


    Other then this, I dont see any reason why they shouldn't work.


    ____________________
    ViewTopia Web Hosting
    Coming Soon!
    ViewTopia Web Hosting
    Coming Soon!

  5. #4
    Senior Member seanmiller's Avatar
    Join Date
    Sep 2003
    Location
    Glastonbury, UK
    Posts
    868
    Member #
    3263
    Liked
    1 times
    Can you post the URL where the problem is happening? Often it is much easier to diagnose problems if you can actually see the code in action.

    Sean

  6. #5
    WDF Staff smoseley's Avatar
    Join Date
    Mar 2003
    Location
    Boston, MA
    Posts
    9,729
    Member #
    819
    Liked
    205 times
    try using non-css bg:

    <body background="space1.jpg">


Remove Ads

Posting Permissions

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

Search tags for this page

background image doesnt show css

Click on a term to search for related topics.
All times are GMT -6. The time now is 12:45 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com