Is it possible? If it’s not possible can someone give me some good workaround?
This fiddle will explain my problem very clrearly
http://jsfiddle.net/9AWdz/
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Given this structure:
You can’t do it with the
opacitysetting, becauseheaderOuts opacity is applied on top of whatheaderIns opacity is.headerIncan be less opaque thanheaderOut, but never more.However, you can simulate the desired effect by carefully setting
colorandbackgroundwithrgba(), and by carefully setting the opacity of child elements.For example:
For IE 8 and below, just let those users view a less flashy version of the site, or patch the effect like so (using IE’s conditional comments):
See this in action at jsFiddle.
Pretty much anything else requires javascript. EG:
headerInnode, append the clone to the document body, and then overlay it directly upon the original node.