body tag

Posted on 2005-04-11
Last Modified: 2010-04-06
I have the background-image in the css body tag at this page, can anybody tell me why it's not showing up..??

Question by:cstormer
    LVL 12

    Expert Comment

    Could you post the css code where you assign the image filename from:


    The only thing I can see without looking at that code is that your table has a white bgcolor specified but you should be able to see the image around the outer edges of the table.

    Author Comment

    body {
          margin: 0;
          background-image: url(images/bg.gif);

    also it is ignoring the body margin tag.. not sure wtf is up.. maybe there is a problem with the intergration with wordpress???
    LVL 12

    Expert Comment

    Add "px" after the zero for margin.  Is the margin supposed to set all four margins????  I thought it was done individually like this.  The background image part looks fine

          margin-left: 0px;
          margin-top: 0px;
          margin-right: 0px;
          margin-bottom: 0px;
    LVL 32

    Accepted Solution

    Remove the <style> and </style> tags in the CSS file. You dont need them.

    Author Comment

    Nicelydone i think it was the <style> tags

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
    Article by: Matthew
    I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now