Login
Dashboard
Saved Stitches
Stitch Catalog
Demo
All
E-Commerce
All
(4)
Collections
(3)
Featured Products
(0)
Hero
(0)
Pop Up Modals
(0)
Promotional CTA
(1)
Store Products
(0)
Buttons
All
(1)
Non Standard
(0)
Squared
(1)
Navigation
All
(2)
+ Dropdown
(1)
+ Top Bar
(0)
Standard
(1)
Top Bar + Dropdown
(0)
Hero Section
All
(6)
Centered
(2)
Grid
(0)
Landing + Services
(3)
Left Aligned
(0)
Right Aligned
(1)
Services
All
(16)
3 Card
(4)
4 Card
(4)
5 Card
(1)
6 Card
(2)
8 Card
(1)
Combo
(2)
Side By Side
(2)
Content Flair
All
(3)
Button Boxes
(1)
Content Groups
(1)
Lists
(1)
Quotes
(0)
Stats
(0)
Toppers
(0)
Side By Side
All
(28)
Non Standard
(1)
Reverse
(8)
Reverse Pair
(5)
Reverse Triplet
(3)
Standard
(11)
Gallery
All
(7)
4 Images
(1)
5 Images
(1)
6 Images
(1)
8 Images
(2)
Full Width
(0)
Mosaic
(0)
Multi Gallery
(1)
Simple
(1)
Meet Our Team
All
(5)
2 Card
(0)
3 Card
(1)
4 Card
(2)
5 Card
(1)
6 Card
(0)
7 Card
(0)
8 Card
(1)
Combo
(0)
Steps
All
(4)
3 Steps
(2)
4 Steps
(2)
5 Steps
(0)
Stats
All
(5)
3 Stats
(0)
4 Stats
(3)
Combos
(1)
Timeline
(1)
Pricing
All
(7)
2 Card
(0)
3 Card
(3)
Menu's
(2)
w/ Toggles
(2)
FAQ
All
(4)
Multi FAQ's
(0)
Side By Side
(2)
Standard
(2)
Why Choose Us
All
(11)
3 Card
(1)
4 Card
(1)
6 Card
(0)
Side By Side
(9)
Quotes
All
(0)
Single Quotes
(0)
MISC
All
(4)
Careers
(0)
Content
(0)
Locations
(1)
Logos
(1)
Maps
(0)
Popups
(0)
Tables
(1)
Video
(1)
Reviews
All
(14)
2 Card
(4)
3 Card
(3)
4 Card
(0)
8 Card
(0)
Full Width
(0)
Single Review
(7)
Forms & Contact
All
(7)
Contact Forms
(7)
Contact Info
(0)
Subscribe
(0)
Events
All
(3)
3 Card
(1)
4 Card
(0)
Side By Side
(2)
Blog
All
(3)
Recent Posts
(3)
Call To Action
All
(4)
Combos
(1)
Contained
(0)
Full Width
(2)
Subscribe Forms
(1)
Footer
All
(6)
2 Column
(0)
3 Column
(1)
4 Column
(2)
5 Column
(1)
Combo
(0)
Simple
(2)
Dark Mode
All
(1)
Standard
(1)
Interior Pages
All
(3)
About Page
(0)
Contact Page
(0)
Content Page
(1)
FAQ Page
(1)
Menus
(0)
Page Banners
(1)
Side By Side
HTML
CSS
Core Styles
Choose your preferred CSS
CSS
LESS
SCSS
CSS Dark
LESS Dark
SCSS Dark
Choose your preferred Core Styles CSS
CSS
LESS
SCSS
-
Dark Mode
+
Dark Mode
Copy
to Clipboard
<!-- ============================================ --> <!-- Why Choose --> <!-- ============================================ --> <section id="why-choose-37"> <div class="cs-container"> <!-- Right Image --> <picture class="cs-picture"> <source media="(max-width: 600px)" srcset="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/lightbulb-m.jpg"> <source media="(min-width: 601px)" srcset="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/lightbulb.jpg"> <img aria-hidden="true" loading="lazy" decoding="async" src="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/lightbulb.jpg" alt="lightbulbs on a wire" width="858" height="781"> </picture> <div class="cs-content"> <span class="cs-topper">Why Choose Us</span> <h2 class="cs-title">Et orci volutpat, back up generator installations</h2> <p class="cs-text"> Facilisis condimentum viverra scelerisque ac morbi sit sed. Turpis sagittis in blandit eleifend tortor ullamcorper eu placerat. Et orci felis volutpat, etiam vitae egestas volutpat pulvinar. </p> <ul class="cs-ul"> <li class="cs-li"> <img class="cs-icon" aria-hidden="true" loading="lazy" decoding="async" src="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/yellow-check.svg" alt="checkmark" width="27" height="27"> Clean Work </li> <li class="cs-li"> <img class="cs-icon" aria-hidden="true" loading="lazy" decoding="async" src="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/yellow-check.svg" alt="checkmark" width="27" height="27"> Attention To Detail </li> <li class="cs-li"> <img class="cs-icon" aria-hidden="true" loading="lazy" decoding="async" src="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/yellow-check.svg" alt="checkmark" width="27" height="27"> Punctual </li> <li class="cs-li"> <img class="cs-icon" aria-hidden="true" loading="lazy" decoding="async" src="https://csimg.nyc3.digitaloceanspaces.com/Why-Choose/yellow-check.svg" alt="checkmark" width="27" height="27"> Quality Guaranteed </li> </ul> <a href="" class="cs-button-solid">Request A Quote Today</a> </div> </div> </section>
/*-- -------------------------- --> <--- Why Choose --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-37 { position: relative; /* Prevents overflow from the image going off screen */ overflow: hidden; } #why-choose-37 .cs-container { width: 100%; max-width: 80rem; margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 7vw, 4rem); } #why-choose-37 .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; max-width: 39.375rem; margin-right: auto; /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */ padding: var(--sectionPadding); padding-top: 0; /* prevents padding from affecting width and height */ box-sizing: border-box; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } #why-choose-37 .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: 0.1em; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; } #why-choose-37 .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: 43.75rem; margin: 0 0 1rem 0; color: var(--headerColor); position: relative; } #why-choose-37 .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: 40.625rem; margin: 0; color: var(--bodyTextColor); } #why-choose-37 .cs-text { margin-bottom: 1rem; } #why-choose-37 .cs-text:last-of-type { margin-bottom: 2rem; } #why-choose-37 .cs-ul { padding: 0; margin: 0; } #why-choose-37 .cs-li { list-style: none; font-size: 1.25rem; line-height: 1.5em; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a1a; display: flex; justify-content: flex-start; align-items: center; } #why-choose-37 .cs-icon { margin-right: 1rem; } #why-choose-37 .cs-button-solid { font-size: 1rem; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-decoration: none; font-weight: 700; text-align: center; margin: 0; color: #fff; min-width: 9.375rem; padding: 0 1.5rem; background-color: var(--primary); border-radius: 0.25rem; display: inline-block; position: relative; z-index: 1; /* prevents padding from adding to the width */ box-sizing: border-box; } #why-choose-37 .cs-button-solid:before { content: ""; position: absolute; height: 100%; width: 0%; background: #000; opacity: 1; top: 0; left: 0; z-index: -1; border-radius: 0.25rem; transition: width 0.3s; } #why-choose-37 .cs-button-solid:hover:before { width: 100%; } #why-choose-37 .cs-button-solid { /* button override */ margin-top: 2rem; } #why-choose-37 .cs-picture { display: block; position: relative; width: 100%; height: 18.75rem; } #why-choose-37 .cs-picture img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; /* makes it act like a background image */ object-fit: cover; } } /* In Between - 650px */ @media only screen and (min-width: 40.625rem) { #why-choose-37 .cs-ul { columns: 2; max-width: 34.375rem; } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-37 { /* moved padding pack to the section container */ padding: var(--sectionPadding); } #why-choose-37 .cs-content { width: 60%; padding: 0; } #why-choose-37 .cs-picture { height: 100%; width: 50%; left: 50%; right: auto; display: block; position: absolute; bottom: 0; z-index: -1; } #why-choose-37 .cs-picture:before { /* Triangle over image */ content: ""; width: 21.875rem; background: #fff; /* makes the triangle shape over the image */ clip-path: polygon(0 0, 73% 0, 42% 100%, 0 100%); opacity: 1; display: block; position: absolute; top: -0.125rem; bottom: -0.125rem; left: -0.125rem; right: auto; z-index: 10; } #why-choose-37 .cs-picture img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } } /* Desktop - 1200px */ @media only screen and (min-width: 75rem) { #why-choose-37 .cs-picture:before { width: 18.75rem; -webkit-clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); } }
/*-- -------------------------- --> <--- Why Choose --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-37 { position: relative; /* Prevents overflow from the image going off screen */ overflow: hidden; } #why-choose-37 .cs-container { width: 100%; max-width: 80rem; margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 7vw, 4rem); } #why-choose-37 .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; max-width: 39.375rem; margin-right: auto; /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */ padding: var(--sectionPadding); padding-top: 0; /* prevents padding from affecting width and height */ box-sizing: border-box; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } #why-choose-37 .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: 0.1em; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; } #why-choose-37 .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: 43.75rem; margin: 0 0 1rem 0; color: var(--headerColor); position: relative; } #why-choose-37 .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: 40.625rem; margin: 0; color: var(--bodyTextColor); } #why-choose-37 .cs-text { margin-bottom: 1rem; } #why-choose-37 .cs-text:last-of-type { margin-bottom: 2rem; } #why-choose-37 .cs-ul { padding: 0; margin: 0; } #why-choose-37 .cs-li { list-style: none; font-size: 1.25rem; line-height: 1.5em; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a1a; display: flex; justify-content: flex-start; align-items: center; } #why-choose-37 .cs-icon { margin-right: 1rem; } #why-choose-37 .cs-button-solid { font-size: 1rem; /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-decoration: none; font-weight: 700; text-align: center; margin: 0; color: #fff; min-width: 9.375rem; padding: 0 1.5rem; background-color: var(--primary); border-radius: 0.25rem; display: inline-block; position: relative; z-index: 1; /* prevents padding from adding to the width */ box-sizing: border-box; } #why-choose-37 .cs-button-solid:before { content: ""; position: absolute; height: 100%; width: 0%; background: #000; opacity: 1; top: 0; left: 0; z-index: -1; border-radius: 0.25rem; transition: width 0.3s; } #why-choose-37 .cs-button-solid:hover:before { width: 100%; } #why-choose-37 .cs-button-solid { /* button override */ margin-top: 2rem; } #why-choose-37 .cs-picture { display: block; position: relative; width: 100%; height: 18.75rem; } #why-choose-37 .cs-picture img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; /* makes it act like a background image */ object-fit: cover; } } /* In Between - 650px */ @media only screen and (min-width: 40.625rem) { #why-choose-37 .cs-ul { columns: 2; max-width: 34.375rem; } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-37 { /* moved padding pack to the section container */ padding: var(--sectionPadding); } #why-choose-37 .cs-content { width: 60%; padding: 0; } #why-choose-37 .cs-picture { height: 100%; width: 50%; left: 50%; right: auto; display: block; position: absolute; bottom: 0; z-index: -1; } #why-choose-37 .cs-picture:before { /* Triangle over image */ content: ""; width: 21.875rem; background: #fff; /* makes the triangle shape over the image */ clip-path: polygon(0 0, 73% 0, 42% 100%, 0 100%); opacity: 1; display: block; position: absolute; top: -0.125rem; bottom: -0.125rem; left: -0.125rem; right: auto; z-index: 10; } #why-choose-37 .cs-picture img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } } /* Desktop - 1200px */ @media only screen and (min-width: 75rem) { #why-choose-37 .cs-picture:before { width: 18.75rem; -webkit-clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode #why-choose-37 .cs-title, body.dark-mode #why-choose-37 .cs-topper { color: #fff; } body.dark-mode #why-choose-37 .cs-text { color: #fff; } body.dark-mode #why-choose-37 .cs-li { color: #fff; } body.dark-mode #why-choose-37 .cs-picture:before { background: var(--dark); } }
/*-- -------------------------- --> <--- Why Choose --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-37 { position: relative; /* Prevents overflow from the image going off screen */ overflow: hidden; .cs-container { width: 100%; max-width: (1280/16rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 7vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; max-width: (630/16rem); margin-right: auto; /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */ padding: var(--sectionPadding); padding-top: 0; /* prevents padding from affecting width and height */ box-sizing: border-box; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-text { margin-bottom: (16/16rem); &:last-of-type { margin-bottom: (32/16rem); } } .cs-ul { padding: 0; margin: 0; } .cs-li { list-style: none; font-size: (20/16rem); line-height: 1.5em; font-weight: 700; margin-bottom: (8/16rem); color: #1a1a1a; display: flex; justify-content: flex-start; align-items: center; } .cs-icon { margin-right: (16/16rem); } .cs-button-solid { font-size: (16/16rem); /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-decoration: none; font-weight: 700; text-align: center; margin: 0; color: #fff; min-width: (150/16rem); padding: 0 (24/16rem); background-color: var(--primary); border-radius: (4/16rem); display: inline-block; position: relative; z-index: 1; /* prevents padding from adding to the width */ box-sizing: border-box; &:before { content: ""; position: absolute; height: 100%; width: 0%; background: #000; opacity: 1; top: 0; left: 0; z-index: -1; border-radius: (4/16rem); transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-button-solid { /* button override */ margin-top: (32/16rem); } .cs-picture { display: block; position: relative; width: 100%; height: (300/16rem); img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; /* makes it act like a background image */ object-fit: cover; } } } } /* In Between - 650px */ @media only screen and (min-width: 40.625rem) { #why-choose-37 { .cs-ul { columns: 2; max-width: (550/16rem); } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-37 { /* moved padding pack to the section container */ padding: var(--sectionPadding); .cs-content { width: 60%; padding: 0; } .cs-picture { height: 100%; width: 50%; left: 50%; right: auto; display: block; position: absolute; bottom: 0; z-index: -1; &:before { /* Triangle over image */ content: ""; width: (350/16rem); background: #fff; /* makes the triangle shape over the image */ clip-path: polygon(0 0, 73% 0, 42% 100%, 0 100%); opacity: 1; display: block; position: absolute; top: (-2/16rem); bottom: (-2/16rem); left: (-2/16rem); right: auto; z-index: 10; } img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } } } } /* Desktop - 1200px */ @media only screen and (min-width: 75rem) { #why-choose-37 { .cs-picture { &:before { width: (300/16rem); -webkit-clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); } } } }
/*-- -------------------------- --> <--- Why Choose --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-37 { position: relative; /* Prevents overflow from the image going off screen */ overflow: hidden; .cs-container { width: 100%; max-width: (1280/16rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 7vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; max-width: (630/16rem); margin-right: auto; /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */ padding: var(--sectionPadding); padding-top: 0; /* prevents padding from affecting width and height */ box-sizing: border-box; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-text { margin-bottom: (16/16rem); &:last-of-type { margin-bottom: (32/16rem); } } .cs-ul { padding: 0; margin: 0; } .cs-li { list-style: none; font-size: (20/16rem); line-height: 1.5em; font-weight: 700; margin-bottom: (8/16rem); color: #1a1a1a; display: flex; justify-content: flex-start; align-items: center; } .cs-icon { margin-right: (16/16rem); } .cs-button-solid { font-size: (16/16rem); /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-decoration: none; font-weight: 700; text-align: center; margin: 0; color: #fff; min-width: (150/16rem); padding: 0 (24/16rem); background-color: var(--primary); border-radius: (4/16rem); display: inline-block; position: relative; z-index: 1; /* prevents padding from adding to the width */ box-sizing: border-box; &:before { content: ""; position: absolute; height: 100%; width: 0%; background: #000; opacity: 1; top: 0; left: 0; z-index: -1; border-radius: (4/16rem); transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-button-solid { /* button override */ margin-top: (32/16rem); } .cs-picture { display: block; position: relative; width: 100%; height: (300/16rem); img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; /* makes it act like a background image */ object-fit: cover; } } } } /* In Between - 650px */ @media only screen and (min-width: 40.625rem) { #why-choose-37 { .cs-ul { columns: 2; max-width: (550/16rem); } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-37 { /* moved padding pack to the section container */ padding: var(--sectionPadding); .cs-content { width: 60%; padding: 0; } .cs-picture { height: 100%; width: 50%; left: 50%; right: auto; display: block; position: absolute; bottom: 0; z-index: -1; &:before { /* Triangle over image */ content: ""; width: (350/16rem); background: #fff; /* makes the triangle shape over the image */ clip-path: polygon(0 0, 73% 0, 42% 100%, 0 100%); opacity: 1; display: block; position: absolute; top: (-2/16rem); bottom: (-2/16rem); left: (-2/16rem); right: auto; z-index: 10; } img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } } } } /* Desktop - 1200px */ @media only screen and (min-width: 75rem) { #why-choose-37 { .cs-picture { &:before { width: (300/16rem); -webkit-clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); } } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #why-choose-37 { .cs-title, .cs-topper { color: #fff; } .cs-text { color: #fff; } .cs-li { color: #fff; } .cs-picture { &:before { background: var(--dark); } } } } }
/*-- -------------------------- --> <--- Why Choose --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-37 { position: relative; /* Prevents overflow from the image going off screen */ overflow: hidden; .cs-container { width: 100%; max-width: calc(1280 / 16 * 1rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 7vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; max-width: calc(630 / 16 * 1rem); margin-right: auto; /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */ padding: var(--sectionPadding); padding-top: 0; /* prevents padding from affecting width and height */ box-sizing: border-box; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-text { margin-bottom: calc(16 / 16 * 1rem); &:last-of-type { margin-bottom: calc(32 / 16 * 1rem); } } .cs-ul { padding: 0; margin: 0; } .cs-li { list-style: none; font-size: calc(20 / 16 * 1rem); line-height: 1.5em; font-weight: 700; margin-bottom: calc(8 / 16 * 1rem); color: #1a1a1a; display: flex; justify-content: flex-start; align-items: center; } .cs-icon { margin-right: calc(16 / 16 * 1rem); } .cs-button-solid { font-size: calc(16 / 16 * 1rem); /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-decoration: none; font-weight: 700; text-align: center; margin: 0; color: #fff; min-width: calc(150 / 16 * 1rem); padding: 0 calc(24 / 16 * 1rem); background-color: var(--primary); border-radius: calc(4 / 16 * 1rem); display: inline-block; position: relative; z-index: 1; /* prevents padding from adding to the width */ box-sizing: border-box; &:before { content: ""; position: absolute; height: 100%; width: 0%; background: #000; opacity: 1; top: 0; left: 0; z-index: -1; border-radius: calc(4 / 16 * 1rem); transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-button-solid { /* button override */ margin-top: calc(32 / 16 * 1rem); } .cs-picture { display: block; position: relative; width: 100%; height: calc(300 / 16 * 1rem); img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; /* makes it act like a background image */ object-fit: cover; } } } } /* In Between - 650px */ @media only screen and (min-width: 40.625rem) { #why-choose-37 { .cs-ul { columns: 2; max-width: calc(550 / 16 * 1rem); } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-37 { /* moved padding pack to the section container */ padding: var(--sectionPadding); .cs-content { width: 60%; padding: 0; } .cs-picture { height: 100%; width: 50%; left: 50%; right: auto; display: block; position: absolute; bottom: 0; z-index: -1; &:before { /* Triangle over image */ content: ""; width: calc(350 / 16 * 1rem); background: #fff; /* makes the triangle shape over the image */ clip-path: polygon(0 0, 73% 0, 42% 100%, 0 100%); opacity: 1; display: block; position: absolute; top: calc(-2 / 16 * 1rem); bottom: calc(-2 / 16 * 1rem); left: calc(-2 / 16 * 1rem); right: auto; z-index: 10; } img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } } } } /* Desktop - 1200px */ @media only screen and (min-width: 75rem) { #why-choose-37 { .cs-picture { &:before { width: calc(300 / 16 * 1rem); -webkit-clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); } } } }
/*-- -------------------------- --> <--- Why Choose --> <--- -------------------------- -*/ /* Mobile - 360px */ @media only screen and (min-width: 0rem) { #why-choose-37 { position: relative; /* Prevents overflow from the image going off screen */ overflow: hidden; .cs-container { width: 100%; max-width: calc(1280 / 16 * 1rem); margin: auto; display: flex; flex-direction: column; align-items: center; /* 48px - 64px */ gap: clamp(3rem, 7vw, 4rem); } .cs-content { /* set text align to left if content needs to be left aligned */ text-align: left; width: 100%; max-width: calc(630 / 16 * 1rem); margin-right: auto; /* moved section padding to the .cs-content so we can have the cs-picture be full width on mobile without the padding preventing it from doing so */ padding: var(--sectionPadding); padding-top: 0; /* prevents padding from affecting width and height */ box-sizing: border-box; display: flex; flex-direction: column; /* centers content horizontally, set to flex-start to left align */ align-items: flex-start; } .cs-text { margin-bottom: calc(16 / 16 * 1rem); &:last-of-type { margin-bottom: calc(32 / 16 * 1rem); } } .cs-ul { padding: 0; margin: 0; } .cs-li { list-style: none; font-size: calc(20 / 16 * 1rem); line-height: 1.5em; font-weight: 700; margin-bottom: calc(8 / 16 * 1rem); color: #1a1a1a; display: flex; justify-content: flex-start; align-items: center; } .cs-icon { margin-right: calc(16 / 16 * 1rem); } .cs-button-solid { font-size: calc(16 / 16 * 1rem); /* 46px - 56px */ line-height: clamp(2.875rem, 5.5vw, 3.5rem); text-decoration: none; font-weight: 700; text-align: center; margin: 0; color: #fff; min-width: calc(150 / 16 * 1rem); padding: 0 calc(24 / 16 * 1rem); background-color: var(--primary); border-radius: calc(4 / 16 * 1rem); display: inline-block; position: relative; z-index: 1; /* prevents padding from adding to the width */ box-sizing: border-box; &:before { content: ""; position: absolute; height: 100%; width: 0%; background: #000; opacity: 1; top: 0; left: 0; z-index: -1; border-radius: calc(4 / 16 * 1rem); transition: width 0.3s; } &:hover { &:before { width: 100%; } } } .cs-button-solid { /* button override */ margin-top: calc(32 / 16 * 1rem); } .cs-picture { display: block; position: relative; width: 100%; height: calc(300 / 16 * 1rem); img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; /* makes it act like a background image */ object-fit: cover; } } } } /* In Between - 650px */ @media only screen and (min-width: 40.625rem) { #why-choose-37 { .cs-ul { columns: 2; max-width: calc(550 / 16 * 1rem); } } } /* Tablet - 768px */ @media only screen and (min-width: 48rem) { #why-choose-37 { /* moved padding pack to the section container */ padding: var(--sectionPadding); .cs-content { width: 60%; padding: 0; } .cs-picture { height: 100%; width: 50%; left: 50%; right: auto; display: block; position: absolute; bottom: 0; z-index: -1; &:before { /* Triangle over image */ content: ""; width: calc(350 / 16 * 1rem); background: #fff; /* makes the triangle shape over the image */ clip-path: polygon(0 0, 73% 0, 42% 100%, 0 100%); opacity: 1; display: block; position: absolute; top: calc(-2 / 16 * 1rem); bottom: calc(-2 / 16 * 1rem); left: calc(-2 / 16 * 1rem); right: auto; z-index: 10; } img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } } } } /* Desktop - 1200px */ @media only screen and (min-width: 75rem) { #why-choose-37 { .cs-picture { &:before { width: calc(300 / 16 * 1rem); -webkit-clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); clip-path: polygon(0 0, 100% 0, 14% 100%, 0 100%); } } } } /* Dark Mode */ @media only screen and (min-width: 0rem) { body.dark-mode { #why-choose-37 { .cs-title, .cs-topper { color: #fff; } .cs-text { color: #fff; } .cs-li { color: #fff; } .cs-picture { &:before { background: var(--dark); } } } } }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: 43.75rem; margin: 0 0 1rem 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: 40.625rem; margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: (4/16rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: (700/16rem); margin: 0 0 (16/16rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: (650/16rem); margin: 0; color: var(--bodyTextColor); }
:root { /* Add these styles to your global stylesheet, which is used across all site pages. You only need to do this once. All elements in the library derive their variables and base styles from this central sheet, simplifying site-wide edits. For instance, if you want to modify how your h2's appear across the site, you just update it once in the global styles, and the changes apply everywhere. */ --primary: #ff6a3e; --primaryLight: #ffba43; --secondary: #ffba43; --secondaryLight: #ffba43; --headerColor: #1a1a1a; --bodyTextColor: #4e4b66; --bodyTextColorWhite: #fafbfc; /* 13px - 16px */ --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 31px - 49px */ --headerFontSize: clamp(1.9375rem, 3.9vw, 3.0625rem); --bodyFontSize: 1rem; /* 60px - 100px top and bottom */ --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; } body { margin: 0; padding: 0; } *, *:before, *:after { /* prevents padding from affecting height and width */ box-sizing: border-box; } .cs-topper { font-size: var(--topperFontSize); line-height: 1.2em; text-transform: uppercase; text-align: inherit; letter-spacing: .1em; font-weight: 700; color: var(--primary); margin-bottom: calc(4 / 16 * 1rem); display: block; } .cs-title { font-size: var(--headerFontSize); font-weight: 900; line-height: 1.2em; text-align: inherit; max-width: calc(700 / 16 * 1rem); margin: 0 0 calc(16 / 16 * 1rem) 0; color: var(--headerColor); position: relative; } .cs-text { font-size: var(--bodyFontSize); line-height: 1.5em; text-align: inherit; width: 100%; max-width: calc(650 / 16 * 1rem); margin: 0; color: var(--bodyTextColor); }
Lorem Ipsum
Undo