Forums

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

Home Forums CSS Is opacity: .5 equals opacity:0.5 for all browsers

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

    Is opacity: .5 equals opacity:0.5 for all browsers?
    Also i have saw some developers using this on rgb/rgba styles like the following
    background-color:rgba(255,0,0, .3); instead background-color:rgba(255,0,0, 0.3);

    I tried to use this for other styles like height: .5em instead of height: 0.5em and it works.
    Anyway my question is about how valid is this markup and is there any chance some browsers (like ie) NOT to understand that and crush the site.
    10x in advance!

    #114231
    chrisburton
    Participant

    I believe IE (below 9) won’t recognize rgba but there might be an IE specific filter to do the same thing.

    #114237

    @redhornet It is always okay—and perfectly valid—to use .5 instead of 0.5, etc.

    #114278
    redhornet
    Participant

    10x joshuanhibbert, that was what I asking for

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.