...

View Full Version : problem positioning image using div



chaits
09-29-2006, 08:17 AM
Is it possible to assign a background image or any image to <div> using css?????

Thanks in advance,
chaits

felgall
09-29-2006, 08:27 AM
yes.

background-image:url(myimage.gif);

BonRouge
09-29-2006, 08:27 AM
Yes, it is.

http://www.w3schools.com/css/css_background.asp

chaits
09-29-2006, 09:21 AM
I tried what u said and it worked too.Thanks 4 that.But facing one more problem
the text i am trying to put in the div container does not come in the center of the background image..whereas when i use table instead it does. Can any1 help me out y is this happening n what is the solution for the same?

Thanks again,
chaits

BonRouge
09-29-2006, 10:09 AM
http://www.w3schools.com/css/pr_text_text-align.asp



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum