HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Background Images
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table
View previous topic :: View next topic  
Author Message
SellOutChick



Joined: 15 Apr 2005
Posts: 1

PostPosted: Fri Apr 15, 2005 1:20 pm     Background Images Reply with quote

I was wondering... I'm not able to use the CSS way of placing images as a background on tables, because it's to put on a website where I don't have access to the head tags... If that makes sense.

Anyhoo, on the main site here it says there was an old-fashioned way of doing it all by HTML. Would someone please be able to share with me? Very Happy
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Fri Apr 15, 2005 3:12 pm     Reply with quote



You can try:
Code:
<table border="1" width="100%" background="black.jpg">
   <tr>
      <td>&nbsp;</td>
   </tr>
</table>

or use inline styles:
Code:
<table border="0" width="100%" style="background-image: url('black.jpg');">
   <tr>
      <td>&nbsp;</td>
   </tr>
</table>
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 4:01 am     Reply with quote

ok... I'm very new to html (yesterday) how do I get my images to display. I type the src= as the path name of the image i want. It displays if I open the document with windows, but over the net it won't. Do I need to upload the images to an ftp somewhere? The same thing happens for background images too. If I open the document it will display, but not over the net.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sun Apr 24, 2005 4:07 am     Reply with quote

Panza_02 wrote:
ok... I'm very new to html (yesterday) how do I get my images to display. I type the src= as the path name of the image i want. It displays if I open the document with windows, but over the net it won't. Do I need to upload the images to an ftp somewhere? The same thing happens for background images too. If I open the document it will display, but not over the net.

Yes - you need to have your images on your website or another website / server to be seen on the internet
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 4:13 am     Reply with quote

thanx, so do i just put <img src=www.domain.com/image.jpg alt=image> ?
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sun Apr 24, 2005 4:18 am     Reply with quote

Take a look at HTML images
Code:
img src="http://www.domain.com/image.jpg" alt="image">

or assuming that the HTML is in the root and your image is in the images folder:
Code:
img src="images/image.jpg" alt="image">
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 4:21 am     Reply with quote

root? what folder is this? is it just a folder in my documents.... i did all the stuff in the tutorial but it still didn't make sense to me... my friend is having a go with a web page editor.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sun Apr 24, 2005 4:29 am     Reply with quote

You will need to study a lot about HTML. The root usually means is where all your web pages / images are placed, for example, you might be placing them on a server in something like D:\domains\example.com\wwwroot\index.html & then when you type in http://www.example.com - that index.html will show up.

How Web Pages Work might be able to help explain in more detail. But remember, your local is not your server.
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 3:40 pm     Reply with quote

yeah, i uploaded all my pages onto a free host.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sun Apr 24, 2005 3:42 pm     Reply with quote

You can try their support to see what their architecture might be. Look thru your FTP site and see if you put all the images in the same root folder or did you create a folder called images?
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 4:05 pm     Reply with quote

I don't have an ftp site........ I am so lost.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sun Apr 24, 2005 4:08 pm     Reply with quote

How do you get your web page(s) and image(s) on your website? Where did you place you image(s) in relationship to the webpage you are working on?
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 4:15 pm     Reply with quote

i created my html files... and then uploaded them onto cjb.net.
Any image tags i put in there don't show up, so i took them out.
Corey Bryant
Site Admin


Joined: 15 May 2004
Posts: 8315
Location: Castle Pines North, CO USA

PostPosted: Sun Apr 24, 2005 4:18 pm     Reply with quote

Where did you place you image(s) in relationship to the webpage you are working on?
Panza_02



Joined: 24 Apr 2005
Posts: 7

PostPosted: Sun Apr 24, 2005 4:20 pm     Reply with quote

in the same folder. (like "My Documents/webpage")
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Table All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial