Hello there, this is my very first post on Stack Overflow. I'm currently working on a challenge from Frontend Mentor and need some assistance. I've created a container with 2 columns and I want to add an SVG background image to the left column. I initially inserted the SVG directly into the HTML file and it displayed fine, but when I tried adding CSS styling, nothing happened. Below is the code snippet I've been using:
<body>
<div class="container-fluid">
<div class="row">
<div class="col-7 left">
<h1> We're coming soon</h1>
Hello fellow shoppers! We're currently building our new fashion store.
Add your email below to stay up-to-date with announcements and our launch deals.
Email Address
</div>
<!-- Right side -->
<div class="col-5">
<img src="images/hero-desktop.jpg">
</div>
</div>
</div>
</body>
.left{
background-image: url('images/bg-pattern-desktop.svg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: auto;
}
Could anyone offer some guidance on this issue?
Feel free to leave a comment on my initial question.
Thank you, Karsten