The ::before selector inserts something before the content of each selected element(s). Use the content property to specify the content to insert. Use the ::after selector to insert something after the content.
Before after css style card design |
Index Page
<section id="cta" class="cta">
<div class="container aos-init aos-animate" data-aos="zoom-out">
<div class="row g-5">
<div class="col-lg-8 col-md-6 content d-flex flex-column justify-content-center order-last order-md-first">
<h3>Lorem Ipsum is simply dummy </h3>
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
<br>
Our mission is to assist you make money by trading crypto currency assets on your behalf and sharing the profits every day.</p>
</div>
<div class="col-lg-4 col-md-6 order-first order-md-last d-flex align-items-center">
<div class="img">
<img src="assets/img/cmt.png" alt="" class="img-fluid">
</div>
</div>
</div>
</div>
</section>(code-box)
Css Style
.cta {
padding: 0;
background: url("../img/cta-banner.jpg") center center;
background-attachment: scroll;
background-size: auto;
background-size: cover;
background-attachment: fixed;
}
.cta .img::after {
content: "";
position: absolute;
inset: 0;
background: rgba(var(--color-white-rgb), 0.9);
border-radius: 15px;
transform: rotate(6deg);
}
cta .img::before {
content: "";
position: absolute;
inset: 0;
background: rgba(var(--color-white-rgb), 0.5);
border-radius: 15px;(code-box)