There is nothing called background opacity. Opacity is applied to the element, its contents and all its child elements. And this behavior cannot be changed just by overriding the opacity in child elements.
Child vs parent opacity has been a long standing issue and the most common fix for it is using rgba(r,g,b,alpha)
background colors. But in this case, since it is a background-image, that solution won’t work. One solution would be to generate the image as a PNG with the required opacity in the image itself. Another solution would be to take the child div out and make it absolutely positioned.
Related Posts:
- Unblur content inside blurring background div
- CSS Background Opacity [duplicate]
- CSS Background Opacity [duplicate]
- Transparent CSS background color
- CSS Background Image Not Displaying
- CSS Display an Image Resized and Cropped
- How to change text transparency in HTML/CSS?
- CSS Background Image Not Displaying
- How to darken a background using CSS?
- CSS Background Image Not Displaying
- Adding background image to div using CSS
- How to make blinking/flashing text with CSS 3
- Making text background transparent but not text itself
- Why an inline “background-image” style doesn’t work in Chrome 10 and Internet Explorer 8?
- Fit background image to div
- Why doesn’t min-height not work on my page?
- Open source social media icons to download and use on website? [closed]
- HTML encoding issues – “” character showing up instead of ” “
- Center image using text-align center?
- How to create an HTML button that acts like a link
- What does In html mean
- Center image horizontally within a div
- Remove CSS class from element with JavaScript (no jQuery) [duplicate]
- How to get a tab character?
- How to make JavaScript execute after page load?
- Is there an upside down caret character?
- Prevent line-break of span element
- How to align iframe always in the center
- Expected RBRACE, but the bracket is there?
- How to make an image center (vertically & horizontally) inside a bigger div
- How to center text with Markdown?
- How can I get the values of data attributes in JavaScript code?
- Disable Scrolling on Body
- Darken CSS background image?
- Alternative to iFrames with HTML5
- Responsive image map
- How to wrap text around an image using HTML/CSS
- How to make a whole ‘div’ clickable in html and css without JavaScript?
- How (and why) to use display: table-cell (CSS)
- Vertical Text Direction
- How to darken a CSS background image?
- How can I create a marquee effect?
- What is “X-Content-Type-Options=nosniff”?
- right align an image using CSS HTML
- Show/hide ‘div’ using JavaScript
- Why is this HTML5 document invalid?
- html not linking css
- Removing border from table cells
- Check a radio button with javascript
- How do you give iframe 100% height
- HTML Display Current date
- Error: The requested URL “[no URL]”, is invalid
- How to get CSS to select ID that begins with a string (not in Javascript)?
- Hidden property of a button in HTML
- Setting table row height
- How do I disable the resizable property of a textarea?
- Is there any reason for using WebGL instead of 2D Canvas for 2D games/apps?
- Document Root PHP
- How to display a gif fullscreen for a webpage background?
- Padding a table row
- How to align 3 divs (left/center/right) inside another div?
- Align an element to bottom with flexbox
- How can I change the thickness of my
tag - jquery – how to show a hidden div
- How to create spoiler text?
- How do I horizontally center a table in Bootstrap
- How do I center text in a span?
- text-align justify not working
- Best way to center a on a page vertically and horizontally?
- Find out whether radio button is checked with JQuery?
- Display text on MouseOver for image in html
- How to make a div 100% height of the browser window
- HTML / CSS table with GRIDLINES
- How to embed a Google Drive folder in a website
- Pure HTML Back Button
- How to access and download a file from a server using HTML 5
- Display text on MouseOver for image in html
- Layout a flex box similar to a table?
- html : iframe not showing content in html
- How can I capture the right-click event in JavaScript?
- How can I publish Word files to a WordPress blog without losing the footnotes?
- Preserve white-space in Page
- Remove html markup by wordpress
- How can I set different html lang attribute for different countries?
- Add Attribute to p Tag of Post Content
- custom html in page change in browser
- Can’t save any WordPress post with the html tag in it
- remove string: ‘custom content…’ from every page
- How to disable escaping html chars in wordpress?
- Whitespace Before Doctype
- html entities occur in the_excerpt used as meta description
- Allow Access To Subfolder Of HTML For Logged In Visitors
- Removing Line Break Tags from a Page
- Using Tags Instead of Categories for site structure
- Use Mail-Tag from Contac Form 7 in a script
- Unable to autoplay and loop a cinemagraph from Imgur
- standard callback function for wp_list_comments
- How to replace a specific html tag in bulk?
- Inserting code into a page just shows raw HTML
- How can I insert a disclaimer in a WordPress site?