Add custom CSS to an image


#1

I have a pixel image which browsers use antialising on when you scale it. I want to add image-rendering: -moz-crisp-edges; and the other browser-dependent CSS. Is this possible somehow?


#2

I don’t exactly know what you’re trying to do here, are you making the image pixelated or crispy?

Isn’t it something like
img {
image-rendering: crisp-edges
}

or something? I don’t code much, but I think that’s how it works, right?

I really need to start googling what antialiasing means.


#3

If I had the ability to alter the CSS contents of the page for everyone, that would be the solution. I’m trying to add CSS for an image on Discourse.


#4

It’s not possible.
Unless you’re the forum admin


#5

Are you asking how to alter an image with CSS? Or are you asking how to implement an image with CSS?


#6

Umm… I have an image on the forum which I want to add CSS to.


#7

What he said.


#8

Yes, I know. It’s mostly a request. You should be able to add basic CSS to images.


closed #9

Not possible. Sorry.