Background image in master page is not displayed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jagdeep gupta
    New Member
    • Aug 2010
    • 98

    Background image in master page is not displayed

    i m using two images in master page in same row one image is displayed but not other plz check out code:
    Code:
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
      <tr>
        <td   style="background-attachment: fixed; background-position-y: center; background-image: url('image/slam11.jpg'); color: #ffcccc; background-repeat: no-repeat; background-color: #ffcccc; "  class="style1">                
        </td>
        <td style="background-image:url(image/banner.jpg); width:auto; height: 217px; background-repeat: no-repeat;">
        </td>
    Last edited by Frinavale; Aug 31 '10, 01:18 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.
  • MrMancunian
    Recognized Expert Contributor
    • Jul 2008
    • 569

    #2
    Check the difference between
    Code:
    background-image: url('image/slam11.jpg');
    and
    Code:
    background-image:url(image/banner.jpg);
    Do you see what I see? I see quotes in the first occassion, and no quotes in the second. I presume that's not right...

    Steven

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Steven's correct, you are missing the single quotes.
      Whenever I have issues with CSS I refer to w3schools.com for help. They have many articles on how to use CSS and it is a good starting point for trying to figure out what's wrong.

      For instance, they have documentation on how to use the CSS background style.

      -Frinny

      Comment

      • JKing
        Recognized Expert Top Contributor
        • Jun 2007
        • 1206

        #4
        Should still work without the quotes. Which background is displaying and which one isnt? Make sure you have the correct path and filenames.

        Comment

        Working...