tags:

views:

49

answers:

2

How to set the background image of an DIV in CSS?

+1  A: 

Put this in your DIV class or id block:

background-image:url(../img/bg.png);
openfrog
Stop answering your own questions under different name.
Tatu Ulmanen
This wasn't my own question.
openfrog
if hes answering under a different name then he needs to be banned as hes doing it to cheat the system and get rep points
PaulStack
Then how come you have exactly the same Gravatar and answered the other question asked by `openfrog` immediately? There's something strange going on either way.
Tatu Ulmanen
Because openfrog is my colleague, sitting in front of me. Nothing wrong here.
openfrog
but a gravatar is linked to a specific email address inst it - does your colleague have the same email address? also why bother asking here if your colleague can answer it for you - needs to be banned!
PaulStack
Then ask him directly and stop gaming and misusing the system to gain rep points.
Tatu Ulmanen
@Tatu Ulmanen - he answered the following "Because openfrog is my colleague, sitting in front of me. Nothing wrong here." as Openfrog when he should have posted that as JustAnotherQuestion - think he tripped himself up there :)
PaulStack
@PaulStack,@Tatu Ulmanen,@openfrog: this discussion would be a better fit for Meta.stackoverflow.com
Piskvor
Because Will is my colleague, sitting in front of me, I can see him merging accounts and suspending openfrog for sockpuppetry. @Paul lol
Will
Note, after the account merge you can't tell that openfrog mistakenly commented under his own account referring to himself as his "colleague."
Will
@Will - thanks for taking care of this. Its annoying to see that people try and cheat the system -this guy tripped up a few times and actually done it on another question as well. - end of issue for me :)
PaulStack
+5  A: 

background-image:url('image path'); put this block of code in ur css and get the background image set.

Prateek