Is it true that the float
property is deprecated?
If so, what alternative should I use instead?
#security .security-wrapper {
background-color: rgba(255, 255, 255, 0.7);
float: right;
width: 50%;
}
body {
margin:0;
padding: 0;
}
#security {
position: relative;
background: url('https://zupimages.net/up/20/21/9zj3.jpg') no-repeat;
background-size: cover;
background-attachment: fixed;
width: 100%;
min-height: 500px;
}
#security .security-wrapper {
background-color: rgba(255, 255, 255, 0.7);
float: right;
width: 50%;
}
#security .security-title {
text-transform: uppercase;
font-size: 32px;
color: #c22312;
padding-top: 40px;
padding-bottom: 40px;
padding-left: 25px;
}
<div id="security">
<div class="security-wrapper">
<div class="security-title">Security investment solutions</div>
</div>