0

How can i make a background color partially transparent with css, i want to have the background color partially showing the background image thanks.enter image description here

<div id="border101"> 
    <center><img src="img/logo.jpg" height="120px"></center>
    <hr> 
    <p style="background-color: white; font-size: 20px;" align="left"> 
        Welcome to cryptofreeonline.ga we have many site in different formats. 
        We made this site with some basic help from the owners over at 
        <a href="blackccgen.ga">Blackccgen</a>
    </p> 
</div>


#border101 { 
border: 10px solid silver; 
margin-left: 100px; 
margin-right: 100px; 
border-radius: 30px 30px 30px 30px; 
margin-top:30px; 
height: 650px; 
background-color: #C64CD5; 
}
DPS
  • 943
  • 11
  • 22

2 Answers2

1

Set opacity to background by using rgba (a is the opacity)

I convert the hex color to rgb using:https://www.w3schools.com/colors/colors_converter.asp

#border101 { 
border: 10px solid silver;
margin-left: 100px; 
margin-right: 100px; 
border-radius: 30px 30px 30px 30px; 
margin-top:30px; height: 650px; 
background-color: rgba(198, 76, 213,0.5); 
}
<div id="border101"> 
    <center><img src="img/logo.jpg" height="120px"></center>
    <hr> 
    <p style="background-color: white; font-size: 20px;" align="left"> 
        Welcome to cryptofreeonline.ga we have many site in different formats. 
        We made this site with some basic help from the owners over at 
        <a href="blackccgen.ga">Blackccgen</a>
    </p> 
</div>
לבני מלכה
  • 15,925
  • 2
  • 23
  • 47
0

use this color

background-color:#ff341140;

last two number in color code is for transparency here is 40