vmars316 Posted April 28, 2020 Share Posted April 28, 2020 Hello & Thanks ; In this example https://www.w3schools.com/cssref/tryit.asp?filename=trycss_grid-gap2 The "background-color: #2196F3;" is specified . But where did the <div> background color come from ? Thanks Link to comment Share on other sites More sharing options...
dsonesuk Posted April 28, 2020 Share Posted April 28, 2020 They are all divs? The one you specified is the background color of class .grid-container, the second rgba(255, 255, 255, .8); is semi transparent white which is applied using .grid-container > div which means apply styling to the top level child div containers only. Link to comment Share on other sites More sharing options...
vmars316 Posted April 29, 2020 Author Share Posted April 29, 2020 Thanks dsonesuk ; "background-color: rgba(255, 255, 255, 0.8);" I never knew what that extra parameter meant , very cool : ) So I could have said #d3eafd .instead . Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now