Hsl color issue in Firefox

I am trying to declare a div border using hsl () like this:

border: 2px solid hsl(0,200,105);

      

I am using Firefox 3.5 and no border is displayed at all. The same code works fine if hsl () is replaced with rgb ()

I read somewhere that Firefox supports hsl () and hsla ()

Am I doing something wrong?

and if hsl () is not supported, does anyone have some code to convert hsl to rgb?

+2


source to share


1 answer


According to the first result from Google and the CSS spec , the syntax should be:

hsl(240, 100%, 50%);

      



The same article also has a converter: http://monc.se/kitchen/stew/hsl/

+3


source







All Articles