TinyPortal
Development => Support => Topic started by: hibs1875 on May 21, 2008, 09:14:58 AM
Hi guys. Does anyone know how to add a background image in an article?
I pasted in this code in the 'Source' when writing my article but the background doesn't show
<style type="text/css">
body
{
background-color:#FFFFFF;
background-image:url(http://ahibsfan.com/forum/tp-images/Image/background.jpg
background-repeat: no-repeat
);
}</style>
Any help or info would be great.
Cheers ;)
Your whole class can be changed to this:
background: #FFFFFF url(tp-images/Image/background.jpg) no-repeat;
Thanks. How do I add this to my article then? I tried a few things but still couldn't get it to work. I'm quite new when it comes to CSS/HTML.
I think you could do it inline. Start your article with
<div styel="background: #FFFFFF url(tp-images/Image/background.jpg) no-repeat;">
and end with
</div>
And put your content in the middle. I've never done it, but it seems like it would work.