Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Cut block.

  • This topic is empty.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #147734
    nuodas159
    Participant

    http://codepen.io/anon/pen/lGDLv

    Hello, how to make .block2 background like body background?

    P.S. body background can be with image.

    #147736
    Paulie_D
    Member

    Just add a background property….this is basic.

    http://codepen.io/Paulie-D/pen/mlLIp

    What are you trying to do?

    #147737
    nuodas159
    Participant

    If body has background-image?

    #147738
    Paulie_D
    Member

    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.

    #147740
    nuodas159
    Participant

    Amm, so impossible?

    #147742
    Paulie_D
    Member

    Pretty much AFAIK….but I’ll keep thinking.

    #147806
    nuodas159
    Participant

    with javascript possible?

    #147812
    Senff
    Participant

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘CSS’ is closed to new topics and replies.