Tagged: Code block, color section
-
AuthorPosts
-
October 7, 2020 at 11:20 pm #1251228
I am trying to stick the following chevron effect at the bottom of a color section. It is inspired by the diagonal border option. The issue i am having is two-fold;
– When i try to create a code block and suck it up over-top of the color section with a negative margin i cannot see the chevron despite adding it to my general CSS.
– The code block is not going to 100% widthI’m fine in accomplishing this in any way, but the white needs to lead into the next section so none of the video should appear under the arrow shape that the video will create. Any advice would be greatly appreciated!
http://www.pathfinderuav.ca/wp-content/uploads/2020/10/chevron.jpg
this is the code i used to create the shape;
#chevron {
position: relative;
text-align: center;
padding: 0px;
margin-bottom: 0px;
height: 120px;
width: 100%;
}
#chevron:before {
content: ”;
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 51%;
background: white;
transform: skew(0deg, 15deg);
}
#chevron:after {
content: ”;
position: absolute;
top: 0;
right: 0;
height: 100%;
width: 50%;
background: white;
transform: skew(0deg, -15deg);
}October 9, 2020 at 5:18 am #1251618Hey Josh,
Thanks for the screenshot, could you post a link to where we can see the results you are getting as well please?
Best regards,
RikardOctober 13, 2020 at 9:24 pm #1252618Apologies for my slow reply, Rikard! We had a holiday. I ended up abandoning this effort as it was holding the rest of the design back. I do appreciate the prompt reply though.
I would very much still like to use a chevron (downward pointing arrow spanning the width of the page with the same angle degree as the built-in diagonal) shape rather than a diagonal shape elsewhere on the site though if you have any suggestions — i would love to stick one at the bottom of a color section elsewhere. I don’t believe the way i was doing it was the best method, if there were a way to modify the diagonal border in the quick CSS that would be ideal.
Please advise, cheers for now!
October 17, 2020 at 9:53 pm #1253536Hi,
Sorry for the late reply, please try this solution.Best regards,
MikeOctober 18, 2020 at 9:20 pm #1253706thank you very much!
October 18, 2020 at 9:27 pm #1253709Hi,
Glad to help, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeDecember 4, 2020 at 11:23 pm #1265062Apologies for the slow reply Mike, i was away. Yes please, go ahead and close the topic. Thank you for your assistance.
December 5, 2020 at 12:29 am #1265071Hi,
If you need additional help, please let us know here the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Coded overlay on a color section’ is closed to new replies.