256 Kilobytes

Answers in Style and Layout | By Some Guy


249 views, 0 RAMs, and 1 comment


Profile Photo - Some GuySome GuyBasic Subscriber

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. 🐏 ⨉ 0Posted by Some Guy 1 year 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 BrownHash BrownInternet ActivistEnglandStaff

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. 🐏 ⨉ 0Posted by Hash Brown 1 year ago

Edit History

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


Post a New Comment

Do you like having a good time?

Register an Account

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

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

Answers— Read More

Find more related content below!

Read More: