Hi there I’m struggling trying to insert an image to a webpage. I have the image displaying however the background of the image is white and I’ve tried with images with clear backgrounds and it is still displaying in a white box. Basically I just want to insert an image to my page without having the white box that encompasses the image and just have only the image overlaid my webpages background colour. I am building my product landing page at the mo. Thanks for the help lads much appreciated!
html
<header id=header>
<nav id="nav-bar" class="nav-box">
<ul>
<li><a href="#" class="nav-link">Features</a></li>
<li><a href="#" class="nav-link">How it works</a></li>
<li><a href="#" class="nav-link">Pricing</a></li>
<li><a href="#"class="nav-link">Contact</a></li>
</ul>
</nav>
<h1>Top Quality Prices For Top Quality Organs</h1>
</header>
<body>
<form id="form" action="https://www.freecodecamp.com/email-submit" method="post">
<legend id="email" for="email">Enter Email Here To Sign Up For Harvestation:</legend>
<input type="email" name="email" id="email" placeholder="Enter Email Here"><br><br>
<input type="submit" for="email">
</form>
<h1>Features and Benfits</h1>
<div class="text-placement">
<img src="https://th.bing.com/th/id/OIP.MJUnn4GIShqLg1hA_2XgwgHaHa?pid=ImgDet&rs=1" alt="doctor">
<h2>Premium Surgeons</h2>
<p>Our surgeons are of the highest quality with hundreds of years of experiance combined</p>
<h2>Fast Payments</h2>
<p>We pay imidetly prior to surgery your money will be in your account before you go on the operating table. That is our guarantee!</p>
<h2>Life Guarantee</h2>
<p>We aim for the highest quality of goods and services and with our Life Guarantee, we guarantee that in the event of any surgical misshap you will be generously compensated in proportion to the damage caused</p>
</body>
CSS
body{
background-color: #080828;
color: white;
text-align: center;
}
#nav-bar{
text-align:right;
}
a{
color: white;
dsiplay: block;
padding: 20px;
background color: grey;
}
.nav-box{
background-color: #080828;
border: 5px solid #080828;
border-radius: 100px;
display: block;
padding: 5px;
}
li{
display: inline;
border-color: orange;
border-radius: 5px;
border-style: none solid none solid;
background-color: grey;
}
li:hover{
background-color: #709080;
max-height: 1px;
}
input[type=email]{
width: 25em;
text-align: center;
height: 2em;
}
input[type=submit] {
width: 10em;
height: 3em;
background-color: #ff0030;
font-weight: bold;
border: 1em solid #ff0303;
border-radius: 1em;
}
input[type=submit]:hover{
background-color: white;
font-weight: bold;
border: 1em solid white;
border-radius: 1em;
}
legend{
font-size: 1.1em;
margin-bottom: 1em;
}
.text-placement{
justify-content: center;
margin: auto;
text-align: left;
width: 40%;
}
ps ignore that the image is not in the correct position on the page I just want to get it to get rid of the white first.