2012-04-15, 10:30 AM
When I inline my CSS images in the html file then it works, and when i use images in linked css file then images wont show up. Linked css is properly linked as other styles are working fine the only problem is with images.
Here the things i have tried so far in the linked css.
body{
background:#000 (images/bg.jpg);
}
but i only see the black #000 color not the image, but when i write this as a inline style then it works fine.
<html>
<style>
background:#000 (images/bg.jpg);
</style>
</html>
now I see image properly, what is this issue ? moreover if i host the pictures in photobucket and then use that direct link in attached css file, then it also works, How strange and frustrating thing is that ? how to solve this issue
Here the things i have tried so far in the linked css.
body{
background:#000 (images/bg.jpg);
}
but i only see the black #000 color not the image, but when i write this as a inline style then it works fine.
<html>
<style>
background:#000 (images/bg.jpg);
</style>
</html>
now I see image properly, what is this issue ? moreover if i host the pictures in photobucket and then use that direct link in attached css file, then it also works, How strange and frustrating thing is that ? how to solve this issue