We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29525
    • 388 Posts

    Can someone tell me why this CSS statement works when I place it in the head section of a template, but when I put the same code into a style sheet called from that it does not apply the background image?

    All the other CSS statements in the style sheet work fine including those that style this particular div. The only style statement that doesn’t seem to work is this background image for the div.

    #menubar2 {color: #3A3629; background: url([(base_url)]assets/images/tilebeige6.gif) repeat;}


    Thank you!
      www.terrybarthdesign.com
      • 33372
      • 1,611 Posts
      Is your CSS stylesheet a MODx document or a linked file? If it’s a linked file, then [(base_url)] will not be replaced with the correct URL. That only works within MODx.
        "Things are not what they appear to be; nor are they otherwise." - Buddha

        "Well, gee, Buddha - that wasn't very helpful..." - ZAP

        Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
        • 29525
        • 388 Posts
        Excellent!

        When I replaced it with the full url it worked perfectly.

        Thank you ZAP!
          www.terrybarthdesign.com