View Full Version : Html Table Help Please!!!
karl472001
09-05-2002, 12:39 AM
How do I make the background of a table or call a picture that I have?
hairynugs6382
09-05-2002, 12:49 AM
if your asking how to set a image as the table background
the you should use css you can use html aswell but im not
quite sure i believe it is
<table background="images/image.img">
or
<tr background="images/image.img">
<td background="images/image.img">
or
instead of html backgroun attribute use
style="background: url(images/image.img); background-position:50% 50%;"
u can use the styles to position the background something that u can not do with html. The positioning is set to center the image.
karl472001
09-05-2002, 01:00 AM
Oh thx a lot man ill go try it!
karl472001
09-05-2002, 01:03 AM
OK. How do i make a table with CSS?
hairynugs6382
09-05-2002, 01:27 AM
There are a couple of ways to apply style information
localy and or inline which i have already demonstrated above.
If u are just starting with css i recomend applying style sheets localy. also u can apply them bettween the <style> & </style>
tags located in the head section of your page example:
<html>
<head>
<title>TITLE</title>
<style>
table { background: url(images/image.img); }
</style>
</head>
<body>
<table>
<tr><td>TABLE DATA</td></tr>
</table>
</body>
</html>
or
<html>
<head>
<title>TITLE</title>
</head>
<body>
<table style="background: url(images/image.img);">
<tr><td>TABLE DATA</td></tr>
</table>
</body>
</html>
you can also link to an external style sheet but i wont get into that if you want to learn more about css click herehttp://www.devguru.com/Technologies/css/quickref/css_intro.html
Sorry so sloppy kinda typed it on the fly!
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.