-
AuthorPosts
-
January 20, 2020 at 12:40 pm #1176261
Hi There,
Fantastic Theme, been using for years bought 10s of licences so far.I am working on a website now that need to have a Triangle divider to the top banner. I ahve found a CSS and HTML code online to achieve the effect but when I added it as a Code section it doesnt fill the whole width of the page as it only covers the width of the assigned content section not full sceeen width. I guess I need to assign the style to the colour section it self. I tired that bit is didn’t work.
The code I used is :
=========================================================
html: (I added in a code clock inside the colour section:<section id=”section1″>
<svg width=”100%” height=”100″ viewBox=”0 0 100 102″ preserveAspectRatio=”none”>
<path d=”M0 0 L50 90 L100 0 V100 H0″ fill=”#ffffff” />
</svg>
</section>CSS: (Added in the quick css section):
#section1{
position:relative;
background:url(‘http://i.imgur.com/k8BtMvj.jpg’);
background-size:cover;
height:200px;
}
svg{
position:absolute;
bottom:-10px; left:0;
width:100%; height:100px;
display:block;
}=======================================================
The code works but not filling the whole screen width. Please help and let me know where I need to add my codes so they work correctly and achieve the look intended.
It is a shame that enfold only offers the diagonal effect seperator while other Themes offer different options.
Below are my logins to show what I mean. It is under a test server as we are still building and will add Theme Key onces done.
Looking forward to your reply.
EmmyJanuary 21, 2020 at 8:54 am #1176607Hey Emmygraph,
Thank you for the inquiry.
You may need to adjust the width of the container inside the color section containing the svg and make it full width. Please check the documentation below for more info.
// https://kriesi.at/documentation/enfold/color-section/#color-section-with-100-content-width
Best regards,
IsmaelJanuary 24, 2020 at 2:28 pm #1178123Thank you very much.
January 24, 2020 at 4:26 pm #1178164Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonJanuary 24, 2020 at 9:13 pm #1178220No Thats Perfect.. Thants
We can close it.
Thanks
January 24, 2020 at 11:48 pm #1178231Hi,
If you need additional help please let us know here in the forums
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Triangle Section divider’ is closed to new replies.