Greets.
I have a front page article I want to put a background image into so the text will float on top of it. Problem is every time I try to add the code in the HTML editor it just erases it on save.
Is there any way to get it to stay in there and show up properly?
Thanks gang.
Here's what I was using:
<BODY BACKGROUND="image.jpg" BGCOLOR="#FFFFFF" TEXT="#000000">
I also tried this:
<div style="background-image:url(/pix/smile.gif);
background-repeat:repeat;
width:200px;
height:200px;">
</div>
Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
Especially the search and bugtracker part ;)
Due to a bug in the editor you'll need to use a work around to save the code. When you save your code change the block to a phpbox block. After you have then saved the code switch the block back to a HTML block. This will save the code properly until you edit it again.
Danke.
Ewww, thanks Ichbin, I was having that same issue. Cool! :-)
Can you think of any reason why the bg image shows up in the editor but not in the article on the front page?
I am saving the article as a PHP page, then pasting my code in, then saving it as an HTML page which (in the editor only) appears to work. But again, as soon as I hit the Home button the image isn't there.
<html>
<head>
<title>Welcome to collectiveconspiracy.com</title>
<style type="text/css">
body {background-image: url(http://clancc.epconline.net/tp-images/bigc2.png); background-repeat: no-repeat; background-position: center; padding: 2px }
</style>
</head>
<body>
<center>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><strong>Collective Conspiracy</strong> was established in 1998 and is an invite only clan based in the USA, but consists of American, Canadian, British, and Australian members.<br /><br />We aim to provide a positive and friendly gaming environment for all on our public server.<br /><br />SERVERS:<br />Battlefield 1942:<br />
<strong>68.90.68.27:14567</strong><br /><br />TeamSpeak Server:<br /><strong>newyork01.voipservers.net:8772 </strong>
</center>
</body>
</html>
I would suggest that you use a div tag with the background image, rather than the body tag. I don't know for sure that it'll work, but it might. Things can get confused when there are multiple body tags on a page.
Text won't float over a div tag bg image though.
Ah. That was the only thing I could think of, so I'm afraid I'm no more help. :)
This is kind of a huge bug... I mean, no background images?
Not a bug.
Trying to put a background image into an article has always been problematic because the Forum has it's own background. I don't know how to do this (maybe somebody else can suggest something) but you would be better off having the image in the code in the article (not as a background image but a regular image) and then using some css in the code to float the text above it, if that is the effect you are trying to achieve.
The other thing you could do is to create an external html page with your background image and text, etc., and call it into the article with an iframe.
Only possible suggestions of how you could do this.
ZarPrime
I'll try using CSS layers with your suggestion of floating txt over a regular image. Don't close the thread as I'll be reporting back.
Ugh, same thing, it shows up in the editor but not in the article :(