Instead of using opacity, set a background-color with rgba, where ‘a’ is the level of transparency.
So instead of:
background-color: rgb(0,0,255); opacity: 0.5;
use
background-color: rgba(0,0,255,0.5);
More Related Contents:
- How do I make background-size work in IE?
- Remove white space below image [duplicate]
- Why does applying a CSS-Filter on the parent break the child positioning?
- CSS Child vs Descendant selectors
- Nesting @media rules in CSS
- How can I center into a div?
- Why doesn’t this a:visited css style work?
- Text blended over background color
- Canvas has white space at the bottom and scrolls too far
- How to use ‘hover’ in CSS
- A grid layout with responsive squares
- Is it possible to create an angled corner in CSS?
- CSS rule based on content [duplicate]
- What does + mean in CSS? [duplicate]
- How can I apply multiple transform declarations to one element?
- Float right and position absolute doesn’t work together
- Converting and rendering web fonts to base64 – keep original look
- Why doesn’t inset box-shadow work over images?
- text-overflow ellipsis on flex child not working [duplicate]
- Make HTML5 video poster be same size as video itself
- Why does stacking order change on webkit filter hover?
- css text gradient
- Is this possible to create 2-axis 4 color gradient in css (bilinear gradient)?
- Can I have different colored left and top borders in CSS?
- Safe width in pixels for printing web pages?
- CSS text align justify big spaces
- Purpose of *:before, *:after rule without content property
- How do I change md-input-container placeholder color using css in angular material?
- internet explorer font face ssl
- Styling the arrow on bootstrap tooltips [duplicate]