WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Extremely frustrating CSS issue! (4 posts)

  1. ThorHammer
    Member
    Posted 2 years ago #

    My background image just won't appear! Why?

    Here is the actual html:

    <div id="wpinfobox">
      <h2 id="wpinfobox-title"><strong>The title</strong></h2>
       <div>
         <ul>
            <li>One</li>
             <li>Two</li>
         </ul>
        </div>
     </div>

    And here is the CSS:

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

    The background image just will not appear whatever I try! But it should. Anyone extremely clever out there??

  2. Caroline Moore
    Member
    Posted 2 years ago #

    The CSS looks OK at a glance, provided the image you're trying to call is in the same directory as the stylesheet.

    It would be easier to troubleshoot with a link to the website.

  3. ThorHammer
    Member
    Posted 2 years ago #

    Hello Sixhours!

    Here is a link:

    http://www.skrivehula.no/test/tester.html

    The image just won't show up.

  4. ThorHammer
    Member
    Posted 2 years ago #

    I solved it!!!

    I had to remove:

    background-attachment: fixed;
    background-position: left center;
    background-size:100% auto;

    and add:
    background-origin:padding-box;

    Oh so happy...!!! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic