![]() |
Having trouble getting a background pic in CSS
This is what I have for the body:
body { background:#000; margin:0; padding:40px 20px; font:x-small "Trebuchet MS",Trebuchet,Verdana,Sans-Serif; text-align:center; color:#ccc; font-size/* */:/**/small; font-size: /**/small; } How do I re-write it so it'll display a background image? |
background-image: url(./img.png);
HTH. David M |
Cool, thanks.
|
alternatively, you could just make your css look like this (shortcut)...
body { background:#000 url(image.png); } you can also add the repeat values, positioning values, and other things. |
All times are GMT -8. The time now is 03:52 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project