Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Background Fallback

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41436
    cpyle0819
    Participant

    Hi, I’m considering background fallbacks for browsers that don’t like rgba yet. Is this ok? It worked in IE8(Browser Mode through IE10) but I dunno…seems like it could fail…


    body {
    background: orange;
    background: rgba(255, 165, 0, 0.5);
    }

    *EDIT* A quick search gave me this https://css-tricks.com/rgba-browser-support/ but that was 2010…what are the latest opinions. :)

    #118012
    Andy Howells
    Participant

    Should be fine, I do similar stuff for buttons that have linear gradients. So just a fixed colour fall back.

    Basically anything older browsers don’t understand they ignore (as a rule of thumb), so browsers that don’t understand rgba will just skip it meaning the original remains in place.

    Browsers that do understand will read the first, then the second and use the second because of the cascade. (Reads the stylesheet top to bottom).

    #118146
    cpyle0819
    Participant

    Good to know. Thanks.

    #118152
    Andy Howells
    Participant

    Just remembered @chriscoyier did an article on RGBA support a while back – https://css-tricks.com/rgba-browser-support/

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.