Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #911432

    Hi! Is it possible to utilize a background image with the diagonal border? Maybe set the border as transparent? See screenshot. (hosted on WPengine) alt="screenshot" />

    #911547

    Hey Christina,

    I’m not sure if that would be possible, have you tried this somewhere? If so then please post a link to where we can see the element in question so that we can have a closer look.

    Best regards,
    Rikard

    #911822

    I haven’t tried it, the example above is from another WP theme… I’ve seen a bunch of threads asking the question but none ever seemed to come to a resolution?? Is is possible to set a transparency on the diagonal border? Or is there another way?

    #911846

    if you are a bit familiar with coordinate systems and polygones – you can try the clip-path method:
    the css code is on that test-page.

    https://webers-testseite.de/elegant/polygones/

    polygone coordinates starts at left top corner and goes clockwise around.
    to have y coordinates it will be nice to have relativ values concerning to screen width

    The starting page is made this way too: https://webers-testseite.de/elegant
    on scrolling you will see that is realy transparent

    • This reply was modified 6 years, 9 months ago by Guenni007.
    #911939

    Hi,

    Let us know if that way would help you at all.

    Best regards,
    Basilis

    #912521

    hey! thanks for the info Guenni but that might be a bit advanced for me ha… Basilis, any other options? I’ve seen a bunch of threads requesting this, has there been a solution that I might be missing?

    #912921

    Hi,

    I am afraid we do not have an other solution for it at all :(

    Best regards,
    Basilis

    #912999

    well it is on basis no magic –

    that is the skewed section:

    #color-section-skew {
    -webkit-clip-path: polygon(0 10vw,100% 0,100% calc(100% - 10vw),0 100%);
    clip-path: polygon(0 10vw,100% 0,100% calc(100% - 10vw),0 100%);
    margin-bottom: -10vw;
    }

    and this is how the css is build:
    click to enlarge

    the only thing to know is that on webpages down means + values ; up means – values
    first point x is 0 and y is 10vw down
    second point x is 100% and y is 0
    etc.

    #913134

    Hi,

    Thanks for sharing your code @guenni007, much appreciated :-)

    Best regards,
    Rikard

    #1019875

    I can’t see properly Geunnini007 answer, can someone help me out please? I want to achive the same! I have been trying but keep failing

    Thank you !

    #1020092

    i reopened my test-page on : https://webers-testseite.de/elegant/polygones/
    i will close it soon on various reasons.

    #1223677

    Just a remark: Guennis solution works for me. Thanks for that!

    Best
    Sigmund

    #1223714

    that test page is gone to heaven :)
    but the solution on https://kriesi.at/support/topic/diagonal-background-image/#post-912999 is a nice starting point.

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.