TinyPortal

Development => Support => Topic started by: hibs1875 on May 21, 2008, 09:14:58 AM

Title: Background image in article?
Post 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  ;)
Title: Re: Background image in article?
Post by: IchBin on May 21, 2008, 02:58:06 PM
Your whole class can be changed to this:
background: #FFFFFF url(tp-images/Image/background.jpg) no-repeat;
Title: Re: Background image in article?
Post by: hibs1875 on May 22, 2008, 11:27:30 AM
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.
Title: Re: Background image in article?
Post by: JPDeni on May 22, 2008, 02:18:29 PM
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.