Skip navigation
I_am_Thumbslinger
Currently Being Moderated

CSS background: shows when in page; not in css file

May 14, 2009 8:13 PM

I put this in the css file:

#body {
    background-image:url(images/llbckgrnd.jpg);
    background-repeat:repeat-x;
}

 

It doesn't show in the design window of DWCS4. If I use the "Page Properties" button down in the inspector and choose the background image via that dialog box, it shows. I cut-n-pasted the exact css DW generated for that and put it in and it doesn't work.

 

I just don't know why the background image isn't showing up in DWCS4... (I remember seeing this happen in CS3 as well)

 

Any ideas?

 
Replies
  • Currently Being Moderated
    May 14, 2009 9:10 PM   in reply to I_am_Thumbslinger

    Are the source code and css buttons showing on the top of your html document?

     

    That happened while I was doing my tutorial this afternoon. I think it corrected when I opened the css style sheet with the document open at the same time.

     

    Unless I open them both at the same time, the source code and main.css buttons don't show on the top of the html document.

     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2009 5:12 AM   in reply to I_am_Thumbslinger

    I_am_Thumbslinger wrote:

     

    I put this in the css file:

    #body {
        background-image:url(images/llbckgrnd.jpg);
        background-repeat:repeat-x;
    }


    What happens if you change it to:

     

    body {
        background-image:url(images/llbckgrnd.jpg);
        background-repeat:repeat-x;
    }

    without the hashtag in front of body

     
    |
    Mark as:
  • Currently Being Moderated
    May 15, 2009 5:56 AM   in reply to I_am_Thumbslinger

    Just goes to show that there is no substitute for proper CSS syntax and usage!

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points