SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Location
    Pune, Maharashtra, India
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    override rgba() function for IE

    hey!
    i have used rgba() function for my web site header to give it a transparent effect.
    But the function is not supported for IE older versions.
    can any one tell me/provide me links how to override the function for IE ???

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Code:
    color: #xxx;
    color: rgba();
    Does not work?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Location
    Pune, Maharashtra, India
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    logic_earth: actually i want the code to work like this:
    if the rgba() function is not supported then it should display a bland color in place of the transparent effect...

    by the way, i tried the code u said, it doesn't work out..
    thanks for your reply..

  4. #4
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by djsahay View Post
    by the way, i tried the code u said, it doesn't work out..
    Well, don't actually use "#xxx" or empty parentheses.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Location
    Pune, Maharashtra, India
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actual code i am using is:

    background-color: rgba(34, 33, 29, 0.9);
    background-color: rgb(34, 33, 29);

  6. #6
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Doesn't that look a little bit backwards from what logic_earth said?

  7. #7
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,296
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by djsahay View Post
    Actual code i am using is:

    background-color: rgba(34, 33, 29, 0.9);
    background-color: rgb(34, 33, 29);
    IE needs you to say background and not background-color. More info here.

  8. #8
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Location
    Pune, Maharashtra, India
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Got my Problem solved!!

    Thanks every one for your replies!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •