WordPress.org

Forums

[resolved] image showing in preview but not in actual post? (3 posts)

  1. onecrumb
    Member
    Posted 6 years ago #

    I'm using a bunch of snippets like this throughout one article:

    -----
    <style type="text/css">#nut-image1{display: block; height: 27px;
    background: url(images/nutrition-facts.png) -16px 0 no-repeat;}</style>
    -----

    In the preview, the pictures showed fine. But after I publish it, all the pictures disappear. How can I fix this?

  2. iridiax
    Member
    Posted 6 years ago #

    Use the full URL path to the image. I'm curious, why are you trying to insert images as backgrounds?

  3. onecrumb
    Member
    Posted 6 years ago #

    I'm using this method because I have one big image, and I want to break the image up into little ones, and describe what each one does. I have not found a better method, but I am happy with this one because it works.

    Your way works! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic