Background | SoloLearn: Learn to code for FREE!

0

Background

Hello all How do I create backgrounds for a specific part of the web page ?

3/15/2020 6:27:01 PM

Azza

5 Answers

New Answer

+3

Use div elements to specify sections in a web page and give it different background color PS:An example https://code.sololearn.com/Wb1oSvqqFI8H/?ref=app

+2

Farhan method works best but you can also use the background-position property in css https://developer.mozilla.org/en-US/docs/Web/CSS/background-position

+1

Thank you so much, I did it 🌸 Ore Adeleye Farhan

+1

My friends how I change the opacity of this background ?? I write in css opacity:0.4; but no change! Ore Adeleye Farhan

0

@Azza there is no css rule to do that but there is a hack in Chris Coyier's blog https://css-tricks.com/snippets/css/transparent-background-images/