TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,980
  • Total Topics: 21,320
  • Online today: 281
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 234
  • Total: 234

Background image in article?

Started by hibs1875, May 21, 2008, 09:14:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hibs1875

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  ;)

IchBin

Your whole class can be changed to this:
background: #FFFFFF url(tp-images/Image/background.jpg) no-repeat;

hibs1875

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.

JPDeni

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.