Please how do remove my image background and set it to use my designed html document background | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Please how do remove my image background and set it to use my designed html document background

31st Mar 2021, 11:06 PM
Immaculate Prince
Immaculate Prince - avatar
5 Answers
+ 5
Immaculate Prince please clarify your question as merely removing a background image is usually as easy as deleting css background-image: url(url); as Josh Greig pointed out.
1st Apr 2021, 12:10 AM
BroFar
BroFar - avatar
+ 4
Can you link to this page or sololearn playground code? That would clarify a lot. I don't know what you're asking merely from the question and strongly suspect other people seeing this question will have a similar problem. If I saw your page I might quickly understand what you mean by "image background" and "html document background". Any element can have a background-image CSS property or a background-color. The body element commonly has those set but it isn't really clear if that's what you mean. I also see "<img>" in your tags so you might be using an img tag in HTML but that's usually not described as a background.
31st Mar 2021, 11:44 PM
Josh Greig
Josh Greig - avatar
+ 4
Maybe she wants the background to be text
1st Apr 2021, 12:36 AM
VṢtēphen
VṢtēphen - avatar
0
You know if you download a photo, or the one you have in your local file, the image must have it's own background, it's that follow come background of the photo I wanted to remove using my css file. I put photo in my html file from my local file, but I wanted to remove the background that originally come with the image and set a new image background using my css file but unfortunately I couldn't so I need help here please.
1st Apr 2021, 1:00 PM
Immaculate Prince
Immaculate Prince - avatar
0
Immaculate wrote, "You know if you download a photo, or the one you have in your local file, the image must have it's own background, it's that follow come background of the photo I wanted to remove using my css file. I put photo in my html file from my local file, but I wanted to remove the background that originally come with the image and set a new image background using my css file but unfortunately I couldn't so I need help here please." Response: Immaculate, can you share your broken CSS code for this question like you did with https://code.sololearn.com/WvSyOGJ46o0Y ? I don't know what you're trying to say about downloading an image. All I get is that you're replacing an image in CSS which is usually quite straightforward. You just replace a URL. The most complex case for replacing a background-image URL would be converting an image to a data URL and pasting that since Sololearn doesn't allow people to upload images separately. More is discussed on that here: https://www.sololearn.com/Discuss/1924077/can-we-add-images-in-sl
1st Apr 2021, 7:37 PM
Josh Greig
Josh Greig - avatar