TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

Static Background Image

Page: 1 2 Reply
Nov 4th 2003#127737 Report
Member since: Jan 14th 2003
Posts: 942
As the title says, how do you go about coding in a static background image?

Nos.
Reply with Quote Reply
Nov 4th 2003#127748 Report
Member since: Oct 16th 2003
Posts: 717
i knew u were going to run into this problem soon.
Reply with Quote Reply
Nov 4th 2003#127755 Report
Member since: Mar 18th 2001
Posts: 6632
http://www.rockymania.org.uk/wph_css_sbi.php

That link shows you how to do it with CSS.
Reply with Quote Reply
Nov 4th 2003#127761 Report
Member since: Jan 14th 2003
Posts: 942
I have no idea how to use CSS..

Nos.
Reply with Quote Reply
Nov 4th 2003#127763 Report
Member since: Mar 18th 2001
Posts: 6632
Reply with Quote Reply
Nov 4th 2003#127768 Report
Member since: Jan 14th 2003
Posts: 942
Thanks for the link. As interesting as it was, nothing they were giving me worked.

I tried external, internal, and everything else in between. Quite frankly, i am so angry i am about to punch a hole in this monitor.

Nos.
Reply with Quote Reply
Nov 4th 2003#127769 Report
Member since: Mar 18th 2001
Posts: 6632
What are you having trouble with? Just put this between the < head>< /head> tags in your document:

< style type="text/css">
body {
background-image : url(images/bg004.jpg);
background-attachment : fixed;
background-color : silver;
}
< /style>

And change the (images/bg004.jpg) part to link to the file you want to use as the background. And if you want to apply it to a table or div or something instead of the entire page, change body to another tag like table or div.

(and remember to delete the spaces at the beginnings of the tags, i just do that so it will show up in the forum.)
Reply with Quote Reply
Nov 4th 2003#127770 Report
Member since: Jan 14th 2003
Posts: 942
http://dreamsforsale.net/news/news.php is where i am trying to put it. Check the source code, maybe?

Here's the website: http://dreamsforsale.net

Here's the image: http://www.dreamsforsale.net/images/layout2_27.jpg

I want it static in the et cetera box.

Nos.
Reply with Quote Reply
Nov 4th 2003#127772 Report
Member since: Nov 26th 2001
Posts: 2586
Ok.... well have you looked closely at your source code yourself? It's a mess.... (I am referring to the news.php page source)

1. When you declare a body tag, declare it once.
2. You are using < font > tags. Just use css.
3. I see tags that aren't complete. First little ditty you have this: < /style > < /style > You have 2 closing tags for one tag.
4. It looks to me like you are including some news info incorrectly, thus repeating sections of body, etc. elements.

Where is the news info coming from (database or a file?) You only need to build one page, then have the news spit out between the < body > and < / body > tags.

Uppercase html tags are outdated. Use lowercase.
Reply with Quote Reply
Nov 4th 2003#127773 Report
Member since: Jan 14th 2003
Posts: 942
1) Thanks, fixed that - i think.
2) I'll get to that later, i need to get this bg done first.
3) You must have viewed the source while i was between editing, i caught that and fixed it soon after.
4) Not sure what you mean by that, i'm using fusion news.

In the case of uppercase html, that's thanks to imageready.

Still can't get this stupid thing to work. I appreciate both of your help thus far, though.

Nos.
Reply with Quote Reply
Page: 1 2 Back to top
Please login or register above to post in this forum