Skip to main content
Participating Frequently
October 5, 2017
Answered

Smoothing my website's font and graphics.

  • October 5, 2017
  • 2 replies
  • 780 views

So I've developed this website which looks really good, except compared to other websites, mine just looks a bit grainy and "pixeley". I appreciate this will vary depending on the type of screen you're viewing it from but is there a standard practice (i.e. CSS attributes) to fix this at all? Much appreciated. Todd

This topic has been closed for replies.
Correct answer pziecina

You could add the font-smoothing, and image optimization properties to your css properties -

https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth

https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering

Before you do this though, you should check why your fonts and images are not rendering correctly, as especially fonts are not often subject to bad rendering, unless you are using downloadable fonts which are not professional standard, (fonts you found on-line, and not from a professional font service, or fonts you have converted yourself, without the creators permission).

Images are a completely different thing however, and many things could be causing the problem, the most common one these days is using a save for web feature, as these save for standard displays, (pre hd) and do not optimize for hi-dpi.

Also look at using srcset/picture elements, (with correctly created images) in html, and image-set in css -

https://responsiveimages.org

https://drafts.csswg.org/css-images-4/#image-set-notation

Don't forget if you use the css properties mentioned, all still require the vendor prefixes.

2 replies

pziecina
pziecinaCorrect answer
Legend
October 6, 2017

You could add the font-smoothing, and image optimization properties to your css properties -

https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth

https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering

Before you do this though, you should check why your fonts and images are not rendering correctly, as especially fonts are not often subject to bad rendering, unless you are using downloadable fonts which are not professional standard, (fonts you found on-line, and not from a professional font service, or fonts you have converted yourself, without the creators permission).

Images are a completely different thing however, and many things could be causing the problem, the most common one these days is using a save for web feature, as these save for standard displays, (pre hd) and do not optimize for hi-dpi.

Also look at using srcset/picture elements, (with correctly created images) in html, and image-set in css -

https://responsiveimages.org

https://drafts.csswg.org/css-images-4/#image-set-notation

Don't forget if you use the css properties mentioned, all still require the vendor prefixes.

Participating Frequently
October 18, 2017

Thank you :)

BenPleysier
Community Expert
Community Expert
October 6, 2017

Have a look at image-rendering | CSS-Tricks or Google the subject.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participating Frequently
October 18, 2017

If I had time to sit at my computer and pull my hair out wondering why nothing I try in my life ever works and now I can't even get a piece of shit software programme do so what I want it to do, instead of behaving like a disobedient little shit of a child, then I wouldn't have come on here, would I?