256 Kilobytes

Answers in Style and Layout | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:29:15 -0800

174 views, 0 RAMs, and 1 comment


Profile Photo - Some Guy Some Guy
🗎 3224 🗨 41 🐏 31

I am working in CSS and I am trying to figure out something in the Style and Layout section. What rule is used to trigger if an image does not exist?

Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 10 months ago 🕓 Posted at 13 January, 2019 04:29 AM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - Hash Brown Hash Brown Internet Activist &... United State of Euro...
🗎 62 🗨 454 🐏 218

You can't do that with CSS.

I'm guessing you're trying to set a fall back image of some sort? You should look at doing this with PHP.

$imageurl = "";

  $imageurl = "http://your-img-src-fallback.com/image.jpg";

echo "<img src=\"".$imageurl."\">";


You could also set a "background-image:" depending on how your structure is built.

Download more RAM. 🐏 ⨉ 0 Posted by Hash Brown 9 months ago

Edit History

• [2019-01-15 17:28 PST] Hash Brown (9 months ago)
🕓 Posted at 15 January, 2019 17:28 PM PST


Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.