I have tried following multiple tutorials on creating curved box-shadows using pseudo elements, but for some reason it doesn’t display in any browser I try. I see it registering in Dev tools but no effect shows up. Can anyone tell me what Im doing wrong? http://www.freedomenergypartners.com/about/
[color=blue].message-box {
min-height:100px; /* this gives the "message-box" a min-height; actual height is set by contents */
background-color:#fff;
position:relative;
z-index:1;
}[/color]
screen.css (line 1713)
.right_sidebar #main .content {
overflow: hidden; /* delete here or override in style.css as shown next */
width: 630px;
}
Hi,
I (=my Firebug ;)) was searching in an other direction, without adding new html-elements.
Step 1
The .box-shadow-preview is cut off at the bottom by the {overflow: hidden;} of the .content, so there is no space for shadow under it.
You can add:
.box-shadow-preview {
...
margin-bottom: 30px;
}
Step 2
Then for the working of the z-index the box .box-shadow-preview itself and the :before and :after elements have to get a common parent with a z-index *). The parent is the .content, so there can be added:
.content {
...
position: relative;
z-index: 1;
}
(Every z-index has to be accompanied by an explicit position, here {position:relative;} is appropriate)
Step 3
No step 3: the rest can stay unchanged.
Good luck!
*) This is often the solution for not working z-indexes: find the first common parent above them in the DOM-tree, and give that a z-index. Then there is a reference for both: no escape possible.
The [U]yellowshoe.com.au/standards[/U] are full of good recommendations, I see!
Indeed, a dark grey can be softerized with a rgba opacity factor.
Or a straight lighter grey rgb color can be used.