Box-shadow is not showing or z-index
Tags: html,css,z-index,css3
Problem :
i have tried as much i know about this stuff but failed to show box-shadow over the image.
http://thesameffect.com/healthy-habits-and-distinctions/#related-posts
i want to show shadow overlayed on the images. same like as ..
Please kindly help me..
HTML :
<div class="related-posts">
<h3 class="related-title">Related Posts</h3>
<ul id="related-posts" class="related-list">
<li>
<a title="Permanent Link toHow Genetics and Epigentics Relate to Your Health and Fitness" rel="bookmark" href="http://TheSamEffect.com/how-genetics-and-epigentics-relate-to-your-health-and-fitness/">
<img class="attachment-Header Square" width="297" height="200" title="genes2" alt="genes2" src="http://TheSamEffect.com/wp-content/uploads/genes2-297x200.jpg">
<span class="related-heading">How Genetics and Epigentics Relate to Your Health and Fitness</span>
</a>
</li>
<li>
...
</li>
<li>
...
</li>
</ul>
</div>
CSS :
.related-posts ul {
list-style: none outside none;
margin: 0;
padding: 0;
}
.related-list li {
background-color: #F4F4F4;
box-shadow: 0 0 10px #000000 inset;
float: left;
height: 150px;
list-style: none outside none !important;
margin: 0.25em !important;
overflow: hidden;
position: relative;
text-align: center;
width: 216px;
}
.related-posts ul li a {
font-size: 14px;
font-weight: normal;
line-height: 20px;
text-decoration: none;
}
.related-posts a {
color: #F4F4F4;
}
.related-list img {
display: block;
margin: 0;
position: absolute;
}
.related-heading {
background-color: rgba(0, 0, 0, 0.5);
bottom: 0;
font-family: Conv_resea-bolditalic,"Helvetica Neue",Arial,Helvetica,sans-serif,georgia;
font-size: 16px;
left: 0;
min-height: 40px;
padding: 10px;
position: absolute;
width: 90.5%;
z-index: 1;
}
PHP - WP Codes :
Thats how i am extracting images from genesis.
$img = genesis_get_image() ? genesis_get_image( array( 'size' => 'Header Square' ) ) : '<img src="' . get_bloginfo( 'stylesheet_directory' ) . '/images/related.png" alt="' . get_the_title() . '" />';
$related .= '<li><a href="' . get_permalink() . '" rel="bookmark" title="Permanent Link to' . get_the_title() . '">' . $img . '<span class="related-heading">' . get_the_title() . '</span></a></li>';
after doing all this stuff i am still unable to see box-shadow, Actually shadow is there at its actual place but due to z-index i think i am unable to visible shadow.
please kindly help me to resolve the issue.
thank you.
After Solution:
The following code just show the image url in Genesis.
genesis_get_image( array( 'format' => 'url' ) );
Solution :
Try something like this
Set the image as div background
CSS Howto..
It worked! HTML: <img class="logo-mask" src="Text2.svg" /> CSS: .logo-mask { opacity:0; position:absolute; -webkit-mask-image: url("TextMask2.svg"); } With this, it all works nicely. Too bad that Dreamweaver doesn't seem to recognize this,...
Check this snippet It will help you. Change the background position only body{background:red} .bx-prevs{display:block;width:27px; height:25px; background:url('http://i.stack.imgur.com/LA9lY.png') no-repeat -1px -1px;} .bx-nexts{display:block;width:27px; height:25px; background:url('http://i.stack.imgur.com/LA9lY.png')...
Read thejQuery.get() API. Tells you right there. var myData; $.get( "your_css.css", function( data ) { console.log(data); myData = data; }); console.log(myData); Just a warning, due to JavaScript's nature, line 6...
Change .rating:not(:checked) > label:hover, .rating:not(:checked) :hover ~ label { content:'\00a0 \00a0 \00a0 '; background-color: #4bce32;/*here is what I want to change when user clikc*/ } to .rating:not(:checked) :hover ~ label:before...
IE is a jerk. You need to change the CSS to include the namespace. Change for example schema { ... } to xs\:schema { ... } (the backslash is there...
In your .css file (at the end of it), or in your header in tags: .ui-breadcrumb{background-color: none;} More i can´t do with this less informations. edit: If that doesn´t work:...
In CSS media there's a difference between device-width and width resolution. You can read more on this here: http://www.javascriptkit.com/dhtmltutors/cssmediaqueries2.shtml That said, try this... @media all and (min-width: 320px) and (max-width:...
If you add one extra div (like it is in the flex example), it is kind of simple playing with the values for float and width, you can see an...
Make sure that the mask is a .png, where the grey part is transparent. Then, use it in the following way: CSS: img{background-image: url('original_image');} HTML: <img src="mask.png"/> See an example...
Just an example: <div class="positionClass contentClass decorClass"> Lorem textum </div> .positionClass: here any position properties could be applyed, 4example absolute/fixed position, display properties, margin/negative margin. .contentClass : here we can...
Use the complete callback provided by .animate() $('.bar1').mouseenter(function () { $('.alt0').animate({ width: "200px" }, 1000, function(){ $('#button').show(); }) }); $('#button').click(function(){ $('.alt0').width(0); }) Demo: Fiddle...
jsBin demo I would do it using an absolute positioned DIV overlaying the body. Fade in the DIV with a new image, then set the same image to body and...
That's because you are replacing the element, so the new element doesn't have any click handler bound to it. You can either use the event delegation technique: $('#aStaticParentElement').on('click', '.hideAndShow', function...
You can try: $('.dropdown-menu').css({ 'right':'auto', 'left': '0' }); Set the default value for right rule and the one you want for left...
There are two ways to apply CSS to XM. Unfortunately, you are attempting a mixture of the two and that cannot work. Your CSS stylesheet is obviously designed to be...
Sorry, It's not possible with native select list. You have to implement a customised select list.
All you have to do is to change border-radius: 40px to border-radius: 50%. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> <title>Oval</title> <style type="text/css"> .oval { width: 160px; height:...
You can use CSS3 rotation transform: rotate(90deg); ...
is it your answer? $(".pannel-icon, .opening-menu").hover(function(){ $(".opening-menu").toggleClass('show'); }); body{overflow:hidden} a{cursor:pointer} .opening-menu{float:right;position:absolute;right:-100px; top: 10px;transition:0.2s all linear} .main-menu{float:right} .show{right:0;transition:0.2s all linear}...
Yes. CSS is, in general, not safe - there are a number of ways that it can be used to inject Javascript code, including but not limited to: Dynamic properties...
no need to add <?php ?> code in the header file just keep it as it is : Create a new file named header.php and add this code to it...
one is NOT what you need as a page refresh will override all the 'memory'. You are most likely looking for localStorage or, if you are using internet explorer prior...
You need to set the position of the sub-menu to absolute in order to prevent what you're referring to as a collision. Add this to your stylesheet: ul li:hover ul{...
With Jetty 9, the process is super simple. In your {jetty.base}/webapps/ directory create a sub-folder that will house your static file content and put your HTML/CSS in there. Note that...
Just add this to the bottom of your CSS: ul#objects li { overflow: hidden; position: relative; } ul#objects li.active:after, ul#objects li:hover:after { content: ""; position: absolute; width: 15px; height: 15px;...
background-size: auto 8px; background-repeat: repeat-x; background-position: 0 50%; Sample fiddle....
Wrap the text you want made diagonal in another element, e.g. a <div> and then do a CSS transform on that element; see MDN.
This CSS would do great. I have taken care of all the browsers:- #mainLogin { margin: 5px; } .align-left { float: left; } .align-right { float: right; } .login {...
Since percentage values of the padding-* properties are calculated with respect to the width of the generated box's containing block, you could: Add a dummy element with no content but...
Here, is the updated fiddle. https://jsfiddle.net/vaydrvcr/1/ You were correct, just you missed that a is always the first child of li. You were to target anchor of first li....