How can I make my container transparent without making the whole site transparent too?
Tags: css,background,transparency,rgba
Problem :
How do I make the white container background transparent like it is here
Background picture shows through without it being affecting by the opacity code for the container?
The container seems to be the content-size:#fff;
in the css
Solution :
Assuming I understand you correctly, you want to modify the background to be transparent without making all the children transparent. E.G. You don't want to do opacity: 0;
Instead use the transparent background-color.
.content-size {
background-color: transparent !important;
}
CSS Howto..
This question seems to be a duplicate of this question which I answered here. The solution is to create a Directive that watches the height changes on your div: app.directive('master',function...
Two good ways: Picture Tag: <picture> <source srcset="smaller_landscape.jpg" media="(max-width: 40em) and (orientation: landscape)"> <source srcset="smaller_portrait.jpg" media="(max-width: 40em) and (orientation: portrait)"> <source srcset="default_landscape.jpg" media="(min-width: 40em) and...
Here’s a decent CSS shorthand cheat sheet (PDF).
If you want to stretch every item based on the image height, this can be achieved fairly simply using flex. I've made some slight adjustments to your markup, but this...
floating the container and removing float:left from the .chat-window should produce the desired result. The <div class="chat-window"> default display is block so it automatically creates a line break therefore the...
Your question is lines on full height between the options - Answer is border-left: 1px solid #666666 Fiddle #navigation { width: 100%; list-style-type: none; background: #000000; text-align: center; } #navigation...
You cannot do this with css-loader and style-loader but you can use react-css-modules to import a specific class into your react file. It loads only the necessary css into the...
You could give your container black background or use css filter: #stage { background-color: black; } #begin { opacity: 0.4; } fiddle: http://jsfiddle.net/oravdmxe/ or #begin { -webkit-filter: brightness(50%); } (use...
You can use :first-letter div:first-letter { padding: 0 3px; background: #f00; } Demo Or a better one div:first-letter { padding: 2px 5px; background: #174D95; font-family: Arial; color: #fff; font-weight: bold;...
You can pass a "complete" function to jQuery animate(). That complete function gets called when the animation completes. In that function you could add a class to your SVG that...
For the first part of your question, i copied your code over and just added this to the css, now it should look like the image you posted: .service {...
This often happens when one uses inline-block <div>s, and most of the time it's due to the fact that the code formatting somehow created a space character between the blocks....
Try using: body { width: 100%; } .semesters { margin: 0 auto; width: 70%; } .semesters a { color:#D8DACF; background:black; font-size:30px; text-decoration: none; display:inline; padding:10px; } FIDDLE...
I think the problem is your container id: HTML ID tags can't start with a number. I got your approach working with basically no changes. HTML <div id="c1"></div> CSS #c1...
More elegant way would be like this var main = function() { var hide_classes = ['sportList', 'itemList']; //list of classes, used by data-hideclass attribute, can be extended $('.' + hide_classes[0]).show();...
this css resource issue please try below <link rel="stylesheet" type="text/css" href="css/test.css" /> and you can see this resource if be load by bowaser. ...
Add position: relative to the parent .textblock-container div. Absolutely positioned elements are positioned relative to their nearest positioned parent (e.g. the nearest parent element with a position of absolute or...
Change your CSS to .active { background-color: #ffe13a; } or else the background-color is applied to all buttons because of the btnMyAge class....
What you want is a content management system (CMS), such as Drupal or Joomla. There are CMS that are specific to e-commerce as well, such as Magento or OpenCart....
The repo indicates it works with ClojureScript and CLJX files are present. I just tried it with ClojureScript 0.0-2511 by putting [garden "1.2.5"] in :dependencies of my project.clj, and in...
The easiest way is to get the current controller and action from the ViewContext's RouteData. Note the change in signature and use of @ to escape the keyword. <% var...
:not(:nth-child(4n)) will get you anything that isn't :nth-child(4n), i.e. anything that isn't the 4th, 8th and so on. It won't exclude the 2nd child because 2 isn't a multiple of...
Looks to me like you've given both DIVs the same class, so they are both not really clearly defined for what you want to achieve. Try adding an additional style...
There is not an easy way to do this. You could integrate some kind of control panel with PHP and SQL, but that's about it.
Add three last properties: .box { white-space: pre; text-align: center; display: block; border: 1px solid black; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; width: 200px; padding: 9px 0; /*add the lines...
You can place the alerts in an absolute positioned container, poping them out of the flow: .alerts { position: absolute; top: 30px; left: 20px; right: 20px; } <div class="main"> <h1>Heading</h1>...
Simply add css to the form like you would a normal object. If you want it to have pretext and rounded corners then you could use a background image such....
This is not possible to do with jQuery - this kind of activity is blocked by the same-origin policy. It's a useful thing to do, but also opens up all...
You need to get the scrollTop value of $(window) while scrolling, then compare it to each 'explanation' offset().top position to determine where the user has scrolled to. var $scales =...
Best way with jQuery $(document).ready(function(){ var str=location.href.toLowerCase(); $(".navigation li a").each(function() { if (str.indexOf(this.href.toLowerCase()) > -1) { $("li.active").removeClass("active"); $(this).parent().addClass("active"); } }); }) ...