Ask your own question, for FREE!
Computer Science 21 Online
OpenStudy (anonymous):

Does anyone know anything about the Tumblr HTML codes? I'm trying to change the background from a solid color to a .jpg picture and can't figure it out.

OpenStudy (anonymous):

hmm you have to change the css

OpenStudy (anonymous):

or using this in html <body background="background.jpg"> (if the image exist in the same folder) <body background="folder_name/background.jpg"> (if image is in another folder)

OpenStudy (anonymous):

I'm not actually any good with coding like this. This is what the HTML code says now: body { font: 12px/1.5em Futura, 'Century Gothic', AppleGothic, sans-serif; color: #1500ff; background: #41eb93; margin: 15px 0px; } I want to change 'background: #41eb93;' so that instead of the color, the background is this picture: http://a.wattpad.com/userbg/sebstan.71591.jpg (And don't judge me for that picture.)

OpenStudy (anonymous):

Yeah, yeah, hysterical. It's attractive, I don't care what anyone says. I just really need to figure this stupid crap out. I've been working on it for the past two hours, but it's just not working.

OpenStudy (anonymous):

lol man I didn't meant to be offensive. just gimme one sec I'm talking to someone

OpenStudy (anonymous):

It's fine. I haven't slept for almost 24 hours, so I'm a bit cranky.

OpenStudy (anonymous):

body { font: 12px/1.5em Futura, 'Century Gothic', AppleGothic, sans-serif; color: #1500ff; background-image:url("give the image name with extension"); margin: 15px 0px; }

OpenStudy (anonymous):

Thank you! I'll try it right now.

OpenStudy (anonymous):

ok bro

OpenStudy (anonymous):

Okay, what do you mean by extension?

OpenStudy (anonymous):

extension is .jpg .png .gif .bmp etc

OpenStudy (anonymous):

extension is basically encoding algorithm.

OpenStudy (anonymous):

Okay, I'm probably getting annoying now, but it's still not working.

OpenStudy (anonymous):

hmm show me what you did?

OpenStudy (anonymous):

I changed the original background thing to this: background-image:urlsebstan.71591.jpg That's the only thing that ended with an extension.

OpenStudy (anonymous):

background-image:url("sebstan.71591.jpg");

OpenStudy (anonymous):

get the syntax right :P

OpenStudy (anonymous):

It still didn't work and I copy and pasted it directly from here.

OpenStudy (anonymous):

hmm bro where is this image sebstan.71591.jpg ? is it in the same location where the css & other files are?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!