I am trying to incorporate an SVG image into a bootstrap form input, similar to this example:
https://i.sstatic.net/7ZSRH.png
This is the HTML code:
<div class="col-md-6">
<div class="subscribe-wrapper subscribe2-wrapper mb-15">
<div class="input-group">
<img src="../../../assets/images/Combined Shape.svg" alt="">
<input type="email" class="form-control email-input" placeholder="Enter your email">
<span class="input-group-btn">
<button class="btn subscribe-btn type="submit">Subscribe</button>
</span>
</div>
</div>
</div>
Sass
.email-input
height: 50px
border-radius: 4px 0 0 4px
::placeholder
color: $primary-gray
.subscribe-btn
min-height: 50px
border-radius:0 4px 4px 0
background: $base-red
color: #fff
font-weight:600
After implementation, it resulted in this:
https://i.sstatic.net/HYzYz.png
Now I am considering creating an additional white div next to the input, or is there a better way to accomplish this using Sass?