- This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi there,
I can’t really explain my problem, so here is a little picture:
http://andschreiner.com/container/css_example.png
The .circle has no background – but the .redBOX background is there…
Is it possible to do that like in the picture?
sry for my bad english.
Possibly…what have you tried?
However, in general, you can’t “cut-through” backrounds of parent elements.
Will the red box have content?
You can fake that sort of thing though.
–
thank you for the fast answer.
my first try
http://codepen.io/andschreiner/pen/NGBYGx
<div class="red-box">
<div class="child"></div>
<div class="content">asdfasdf</div>
</div>
.content {
z-index:9;
}
this one isn’t working either.
As I said, it’s not easy.
You might want to look as SVG images or masking.
your solution with the border is pretty awesome.
It’s not a border, it’s shadow..but thanks.
But if the redBox has content, it doesn’t work.
It can…it depends on what layout you want.
http://codepen.io/Paulie-D/pen/epjMKr
Safari : It should but I can’t test.