- This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 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.
http://codepen.io/anon/pen/lGDLv
Hello, how to make .block2 background like body background?
P.S. body background can be with image.
Just add a background property….this is basic.
http://codepen.io/Paulie-D/pen/mlLIp
What are you trying to do?
If body has background-image?
If you are trying to make a cut-out so you can see the body bg image through it…you can’t do that.
If the block2 has no background it will show the background of the block div.
Amm, so impossible?
Pretty much AFAIK….but I’ll keep thinking.
with javascript possible?
It’s not perfect and will need some work (X-coordinate is not calculated properly, and it’s not overly flexible) but here’s something you can start with: http://codepen.io/senff/pen/onfzH