- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
If you have a look at this codepen: http://codepen.io/SiteOctopus/pen/qvDdi, you’ll see a nice background. This is done with gradients, which some browsers don’t support, is there a way to have a PNG fallback?
Thanks in advance!
With a repeating bg image…sure!
Frankly, unless it’s super important that they see your gradient/image…just served up a neutral bg color.
It’s not as though they will know the difference.
What I’m wondering is how to actually write a bit of css that will show a colour instead
background:red;
Yes but how would I show that only if the background can’t be displayed?
Put it before all of you other background declarations.
If the browser can’t support gradient declarations it will ignore them.
Oh, okay thanks!