logo
down
shadow

Override opaque text in a transparent div with CSS


Override opaque text in a transparent div with CSS

By : Lachlan Weber
Date : October 17 2020, 11:12 AM
I think the issue was by ths following , The easiest way is to style the background of the parent div with opacity/alpha:
code :


Share : facebook icon twitter icon
Opaque text over transparent box

Opaque text over transparent box


By : Sam Patel
Date : March 29 2020, 07:55 AM
this one helps. Use a transparent background color instead of opacity. No extra markup required.
code :
div {
  background: rgba(0,0,0,.5)
}
transparent div over an image but opaque text

transparent div over an image but opaque text


By : Jatin
Date : March 29 2020, 07:55 AM
Any of those help change the background of .hilight to rgba(0,0,0,0.65) and remove the opacity.
code :
.hilight {
 background-color: rgba(0,0,0,0.65);
 position: absolute;
 height: 85px;
 width: 415px;
 font-family: Verdana, Geneva, sans-serif;
 color: #FFF;
 bottom: 0px;
 z-index: 1;
}
How to make text in transparent div opaque?

How to make text in transparent div opaque?


By : AndrewPK
Date : March 29 2020, 07:55 AM
this will help The issue with your approach is that you're changing the opacity for the entire containing element—including its children.
Instead of changing the opacity of the containing element to affect its background opacity, try changing the alpha of its background color. This requires you to convert your color from hex to rgba format (tools are available online for doing so). Here is an example with a black background with an opacity of 50%:
code :
.navbar-fixed-top {
    background-color: rgba(0,0,0,.5);
    ...
}
.navbar-fixed-top a {
    color: rgba(0,0,0, .8);
}
transparent text but opaque background in css

transparent text but opaque background in css


By : AgentSmith42
Date : March 29 2020, 07:55 AM
Hope that helps I found an answer for my question here: https://codepen.io/zFunx/pen/EbOQow
code :
body {
  padding: 0;
  margin: 0;
  height: 100%;
}
.overlay {
  background: url(https://web.opendrive.com/api/v1/download/file.json/NTlfMTM2NDExNjNf?inline=1);
  height: 100%;
  position: relative;
  background-size: cover;
}
.overlay h1 {
  position: absolute;
  background-color: #000;
  color: #fff;
  mix-blend-mode: multiply;
  text-align: center;
  font-size: 3em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
<div class="overlay">
  <h1>Mix-Blending in CSS</h1>
</div>
css, transparent text with opaque background

css, transparent text with opaque background


By : Ann Shabanova
Date : March 29 2020, 07:55 AM
Any of those help No.
Cause there is still a white background behind, you have to cut the layer under the text.
Related Posts Related Posts :
  • Change colour of ionicon content
  • Why can't I get the hero image to show in my CSS?
  • CSS grid and inline-block design issue
  • How to add more information to PayPal button?
  • How can I resolve Grid layout problem in this case?
  • Break a list-item to a new line when it exceeds width of container
  • HTML Text Display next to menu
  • How to highlighting differences between 2 html files
  • Where can I find a SWIFT form in HTML?
  • What kind of (x)HTML tags does CKEditor allow?
  • What characters must be escaped in an HTTP query string?
  • Displaying query result in a HTML table in PHP
  • Is there a "texbox content changed" DOM event?
  • Can an iframe content be rendered in standards mode when the parent is rendered in Quirks mode?
  • Make texarea size not adjustable in google chrome
  • HTML5 Canvas compositing (source-in)
  • Is it possible to save client state in an iFrame when the page changes?
  • Is there a textArea for flex, which supports html-text with css formatting?
  • Encode HTML in Flex/Actionscript
  • How to make a div expand to fit available vertical space?
  • html link in swf object
  • Enlarging Image in New Window?
  • If I want my textarea to be hidden, how do I do it?
  • What scripting languages can be used with the HTML5 canvas element?
  • Web page "Paper Notes effect"
  • How to call html to jsp?
  • RegEx: Matching a especific string that is not inside in HTML tag
  • IE6 fix for site
  • Generate an HTML Response in a Java Servlet
  • navigation overlapping
  • CSS site how to
  • Send e-mail from a form (only HTML, javascript)
  • html auto tag completion
  • Local Database Storage default data
  • HTML DOM drag-n-drop: what about when mouse leaves window?
  • how can i make a HTML submit button which hand you/generate a PDF?
  • solve copy/paste encoding problems?
  • How to call servlet class from HTML form
  • IE8 CSS width, can't use percents?
  • Site wider than browser without horizontal scrollbars
  • Submitting a form from Email
  • How to add video player navigation for videos in html
  • What's the best way for storing record's ID on web page while editing in ASP.NET MVC?
  • RegEx to extract all HTML tag attributes including inline JavaScript
  • � odd character
  • browser compatibility
  • shadow
    Privacy Policy - Terms - Contact Us © bighow.org