How to change background image by css
-
Hi, there.
I use twenty-twenty-three theme and I know how to add ID.
As my website show, there are three blue blocks and I hope I can place 3 different image as background.
But when I add the ID, and try to write the css, I can change first one block only? Why? Did I miss anything?
My Css code like under:
#importantNotice{background-image:url(‘https://new.chhsban.edu.my/wp-content/uploads/2023/03/dragon_background4.png’);background-size:70%;background-repeat:no-repeat;background-position:right top};
#HParent{background-image:url(‘https://new.chhsban.edu.my/wp-content/uploads/2023/03/dragon_background4.png’);background-size:70%;background-repeat:no-repeat;background-position:right top};
#fenghua{background-url:(‘https://new.chhsban.edu.my/wp-content/uploads/2023/03/logo_transparentback2.png’);background-repeat:no-repeat;background-position:right top};
thanks a lot.
The page I need help with: [log in to see the link]
The topic ‘How to change background image by css’ is closed to new replies.