Center text in slanted section

Good Morning,

I have a section that uses a bit of html to create a slant. I am trying to have my text positioned in the center of this section so that half of the text is on the white and the other half is on the gray, Like so…

I tried a bunch of different things but have not found a solution as of yet. Here is my read link >>

If anyone would be so kind as to explain to me where I am going wrong, I would greatly appreciate it.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Use flex box on paragraph


I’m not sure how using flex box will help. The problem is that the "zig zag’ Section is comprised of 2 polygons and written in html. If I add an element to the "zig zag’ Section the element goes either above or below the actual section. I need to figure out how to have the text in the center of the "zig zag’ section.

So far my code looks like this

  position: relative;
  bottom: -5px;
  width: 100%;
  height: 10vw;


<svg class="trapezoidal-horizintal" xmlns="" viewBox="0 0 100 100" 
    <polygon fill="#f3f1f1" points="0,100 100,0 100,100"/>

It’s different now but the last version I got it to work. This version I think the
z-index: -1 on the svg would help which should put it behind.


It’s back to the way it was before. Would you mind telling me how you got it to work?

Sure, I just added flex box to the paragraph and adjusted the margin I believe. (from what I remember) I only checked ion desktop so it would more than likely have to be adjusted somewhat on other sizes.