Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Background img troubles
Old 01-01-2008, 12:30 AM Background img troubles
Novice Talker

Posts: 5
Trades: 0
ok, heres the deal, i am designing a webpage for a class in school, and nomatter what i try, i cant get the background image to show, and yes the image is in the same folder as the webpage so its not a img src problem,
-
-
-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>MyName2</title>
</head>
<body bgcolor="#31b5d6">
<h1 align="center">HTML Web Sites</h1>
<img src="gaara.jpg" width="100%" height="100%"><div style="overflow:
auto; position: absolute; top: 0px; left: 0px;">

</body>
</html>

as you can see its nowhere near to being done, but i just cant get past the backgroud problem, and yes i tried the standard way of <body background"example.jpg"> but that didnt work either, i also reduced the resolution of the image to 800x600 thinking that it was a loading problem, but it wasnt,
so to my question, does anyone have a idea as how to fix my problem, or a different way to do a background? any help is appriciated. (also please dont give me a solution in css or xhtml because i havnt learned them yet it will only confuse me more.
http://www.naruto-wallpaper.net/75-gaara-searching.html http://www.naruto-wallpaper.net/141-gaara-cool.html i was working with both of these images if it helps

Last edited by shadowxninja; 01-01-2008 at 04:24 AM..
shadowxninja is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-01-2008, 04:23 AM Re: Background img troubles
Novice Talker

Posts: 5
Trades: 0
http://www.naruto-wallpaper.net/75-gaara-searching.html http://www.naruto-wallpaper.net/141-gaara-cool.html i was working with both of these images if it helps
shadowxninja is offline
Reply With Quote
View Public Profile
 
Old 01-01-2008, 05:08 AM Re: Background img troubles
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.w3schools.com/html/html_backgrounds.asp

http://www.w3schools.com/css/css_background.asp


HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title>MyName2</title>
<style type="text/css">
body {
    background-image: url(gaara.jpg);
	background-repeat:no-repeat;
	background-position:center top;
    background-color: #31b5d6;
}</style>
</head>
<body>
<h1 align="center">HTML Web Sites</h1>

</body>
</html>

Quote:
please dont give me a solution in css or xhtml because i havnt learned them yet it will only confuse me more
Learn CSS NOW! while you're new at it, it will be easier.
XHTML is exactly the same code as HTML just in lower case and with a few tags not allowed.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-01-2008, 10:32 AM Re: Background img troubles
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
XHTML is exactly the same code as HTML just in lower case and with a few tags not allowed.
... AND.. EVERY single tag MUST be closed
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-01-2008, 01:50 PM Re: Background img troubles
Novice Talker

Posts: 5
Trades: 0
thanks for your help, but i cant do css cause im taking a html class and i wont get credit if i do it in css and chris, i already tried the standard tag of <body backgroud="example.jpg"> and it didnt work thanks for the try though.
shadowxninja is offline
Reply With Quote
View Public Profile
 
Old 01-01-2008, 02:12 PM Re: Background img troubles
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.candsdesign.co.uk/demo/wt/gaara/

Quote:
but i cant do css cause im taking a html class and i wont get credit if i do it in css
What kind of class is that?? teaching people to use deprecated methods of designing, one day schools & colleges may catch up with the rest of the world.


But I doubt it will ever happen.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-02-2008, 12:02 AM Re: Background img troubles
Novice Talker

Posts: 5
Trades: 0
Quote:
Originally Posted by chrishirst View Post
http://www.candsdesign.co.uk/demo/wt/gaara/



What kind of class is that?? teaching people to use deprecated methods of designing, one day schools & colleges may catch up with the rest of the world.


But I doubt it will ever happen.
lol.... i hear you there
shadowxninja is offline
Reply With Quote
View Public Profile
 
Old 01-02-2008, 02:52 AM Re: Background img troubles
©®azy-¢øÐ3R's Avatar
Average Talker

Posts: 19
Name: kokokoko
Trades: 0
i suggest you use dreamweaver that makes html pretty simple settinf background ect..... check it out.
©®azy-¢øÐ3R is offline
Reply With Quote
View Public Profile
 
Old 01-02-2008, 03:49 AM Re: Background img troubles
Novice Talker

Posts: 12
Trades: 0
Are you trying to link to files on your computer? If so this may be causing problems when you use firefox or opera browsers. Im not sure if this is only happening to me, but I make alot of mock websites on my computer and I noticed that the images and external style sheets would only work when I viewed them in IE. To confirm that this was the problem, I tried uploading the images to my photobucket account (Dont have a web host yet) and they would work fine in Firefox. Try this out and see if this is the problem, it sounds exactly like what was happening to me. Also make sure background is spelled right

I took a webmastering class about a year before I got serious about it, and we definitley learned CSS and about how useful it was...

Last edited by MikeRoweforpres; 01-02-2008 at 03:51 AM..
MikeRoweforpres is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Background img troubles
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50166 seconds with 12 queries