hi hi, i um, havent been coding for very long/in a while, so i pretty much forgot what all these things do... i would really like someones help please---ok---
whats a simple enough code to put an image on the background? if you need some extra explanation, i would like to show you my dilemma...
ok so if you go there, you can see this image of a guy, if at all possible, i want to figure out a way to have that either to the left or right of my story column--- like when i scroll the story column, the picture stays put... i had it like that a while ago, but coding constantly changes and i think the old code i had for this broke? i dont know.... starting from scratch is out of the question for me, so i just use bits and pieces of my old coding to try and scrap together something halfway decent... if you need to look at my coding, please tell me---
thank you for reading, and if you can help much appreciated. have a blessed day and i hope to get replies soon, so please ping me ❤️
Hi there, I think I might have a fix to your problem! If you do something like
body {
background: url(pictureURLhere);
background-repeat: no-repeat;
}
It should put the picture in the top left corner. Was that what you were thinking?
sweet ! thank you, thats a mighty helpful start.. now if i could get it into a more appealing spot... but like idk should i just copy position code from something else?
///tysm for your help!
For sure, Depending on what you want there's a few ways to make it look nicer so if all you want to do is move it, add these to the previous code
background-position-x: 10px;
background-position-y: 10px;
you can change the 10 until it's where you want it to be, it'll be some messing around with for the sweet spot but it's something!
Also I found if you just add
background-size: contain;
instead of position coding, It will take over the length of the page and the content will scroll independently without the image moving.
this i amazing, thank you so much for all your help! :3 cant wait toi try it out!