Thread: Table Question
Results 1 to 12 of 12
Related
-
Table Question Forum: HTML Forum
Replies: 7 -
Yet another Table Question Forum: HTML Forum
Replies: 2 -
table question Forum: HTML Forum
Replies: 6 -
Table question Forum: HTML Forum
Replies: 1 -
Help with a stupid table question Forum: HTML Forum
Replies: 2
-
08-01-2004, 03:42 PM #1
Table Question
---Hello~~~
Is there a way to make the background of a table be a picture?
---Josh~~~~
-
08-01-2004, 04:11 PM #2
Hi Josh,
try this:
<html>
<head>
<title>Table Background Image</title>
<style>
<!--
.table1 {background-image: url(yourImage.jpg)}
//-->
</style>
</head>
<body>
<table class=table1>
<tr><td>text text text text text text</td></tr>
</table>
</body>
</html>
Hope this helps.
krak_d
-
08-01-2004, 05:48 PM #3
thanx for the reply krak d. I tried the code that you gave me but it didnt work. i dont know what went wrong though. ???
-
08-01-2004, 09:06 PM #4
-
08-01-2004, 09:36 PM #5
---This Is The Code That I Used :
<html>
<head>
<title>Table Background Image</title>
<style>
<!--
.table1 {background-image: url(yourImage.jpg)}
//-->
</style>
</head>
<body>
<table class=table1>
<tr><td>text text text text text text</td></tr>
</table>
</body>
</html>
---My Website Is http://geocities.com/thewrestlinghideout But There's No Table On It Cause I Couldn't Get The Code To Work.
---PS : My Website Is Under Construction Thats Why There's Nothing On It Except A Navigation System
-
08-01-2004, 09:48 PM #6
according to the code you posted you will have to have an image actually named yourImage.jpg and it must be in the same directory as the page calling the image.
Dave
-
08-01-2004, 09:53 PM #7
i replaced "yourImage.jpg" with the name of my image and it still didnt work
-
08-01-2004, 09:55 PM #8
make a test page so I can see exactly what you have
btw, this is why I said to post your code, I had already seen the sample code posted by krak d
Dave
-
08-01-2004, 10:09 PM #9
Thanx For the Help But I Messed Around With It And I Got It To Work I Don't Know What It Was But Now It Works
---JoshLast edited by DaWebmasta; 08-01-2004 at 10:32 PM.
-
08-11-2004, 12:07 AM #10
well idk bout u guys but i usually just do this
<table background="url of image" width="100" height="100"><tr><td></td></table>
or u can add background to each individual umm cell.
-
08-11-2004, 11:58 AM #11
My explanation.....
Originally Posted by undertaker
As it was, you just told the browser what to show as a background if there was anything in it.
Cheers
-
08-12-2004, 03:36 PM #12
yup agreed if u dont have anything inside the tables they "sqrunch" up and stay that way unless they are filled.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum