Forums

[resolved] Solid Color behind loading images? (5 posts)

  1. noncollective
    Member
    Posted 2 years ago #

    Is it possible to have a solid colour behind images while they load?

    Cheers, D.

  2. harknell
    Member
    Posted 2 years ago #

    You can usually add that in by adding a css entry for images (or make a class for images that get added to your images) and add a background image element. Any decent online css guide will show you how this works.

  3. aeonex
    Member
    Posted 2 years ago #

    Harknell,

    Do you have a reference to "any decent css guide" ?

    Have you tested any of the theories you have posted?

    "You can usually add that in by adding a css entry for images"

    An entry such as?

    Attempting to give the img tag a value in the css of a background-color?

    (or make a class for images that get added to your images) and add a background image element.

    What???

    Make a DIV and give it a background-color to show while the image is loading?

    What did you have in mind?

  4. shadow
    Moderator
    Posted 2 years ago #

    In your CSS, whatever class you are using for your images, [usually something like .post img] just add a background colour.

    For example

    .post img {background #cccccc;}

  5. noncollective
    Member
    Posted 2 years ago #

    Thanks Shadow, that worked.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.