Log in

View Full Version : Image Not Appearing



marain
09-27-2020, 08:57 PM
Folks,

The page is https://www.njgunlawyers.com/page.php?here=fidDenied. The relevant CSS code is


.fidDenied {
background-image: url("../images/denied300x150.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: top left;
}
The page class is fidDenied. denied300x150.jpg is in the server's image folder. The named image does not appear on the page presentation.

Additional information: The information above is for desktop. Identical CSS code is in the mobile CSS folder. The image appears in the mobile presentation as expected.

Color me perplexed.

A.

coothead
09-28-2020, 08:38 AM
Hi there marain.


I do not see a problem with the background-image
in either Chrome or Firefox browsers. :confused:

Have you tried clearing browser caches? :cool:


coothead

marain
09-28-2020, 11:56 AM
Coothead,

Was on Firefox yesterday, did clear the cache. I try it on Firefox again, but using a different computer. Now it works.

Was my clearing of the cache defective? (That's a rhetorical question, don't devote time to it.) I think that will have to remain one of the mysteries of the universe.

Thank you.

A.

coothead
09-28-2020, 12:23 PM
Hi there marain,


there is one sure-fire-way to clear cache, if all else seems to fail.


Make sure that you have a local copy of the actual CSS file on the server.
Delete the CSS file from the server.
Check that the page on the server now displays the page without CSS.
Add your amendments to your local copy of the CSS.
Upload the CSS file to your server.
Check that the page on the server now displays the page with the amended CSS.



coothead