I am trying to make this image from this free website the background of my codepen. Can someone show me what the css would look like. I know how to do the
{background-image: ( );
part, I just dont know how to put the url in and stuff. Or maybe i’m just wrong all around.
How would I make just that picture cover the whole background? It lets you download the image, I don’t know how to set a background from an image in my files.
only problem is that the image on the post is pretty low res.
if you have a higher resolution file you can put it up on an image hosting service (google it there are lots of these)
once it resides somewhere on the web you can put that link address in your codepen.
yes google photos works, just tested it. As to your second question that depends on what your intended use is.
In CSS the image becomes the background decoration of a division. This division can contain other elements.
In HTML the image is the element in itself. There are reasons for both.
I found the image you are asking about online. It is a tillable background so you do not want to use the background-size or background-repeat properties. just set the image background and that is it.
the codepen link provided will take you to what I think you want to achieve.