**I just noticed that it won't display the code as is so I've removed most of the <>. I hope this makes sense.**
I'm taking a class and it involves a tiny little bit of HTML and CSS "programming". Anyway, what you see below is straight from the book and it's not working!!! It's very irritating. I have the wallpaper.gif file in the same folder as the HTML file (it's name is bg-test2.html). I double click on the HTML file and I get 2 white cells with text in them. The cell on the right is supposed to have the wallpaper.gif image tiled horizontally. Any ideas what's not letting this work? I've gone over it half a dozen times and can't figure it out. Thanks for your help.
html
head
style TYPE="text\css"
<!-
.bg2 {
background-image: url(wallpaper.gif);
background-repeat: repeat-x
}
//->
/style
/head
body
table HEIGHT="100%" WIDTH="100%" BORDER="1"
tr
td WIDTH="200" BGCOLOR="#FFFFFF"
some text
/td
td WIDTH="250" CLASS="bg2"
some more text
/td
/tr
/table
/body
/html
I'm taking a class and it involves a tiny little bit of HTML and CSS "programming". Anyway, what you see below is straight from the book and it's not working!!! It's very irritating. I have the wallpaper.gif file in the same folder as the HTML file (it's name is bg-test2.html). I double click on the HTML file and I get 2 white cells with text in them. The cell on the right is supposed to have the wallpaper.gif image tiled horizontally. Any ideas what's not letting this work? I've gone over it half a dozen times and can't figure it out. Thanks for your help.
html
head
style TYPE="text\css"
<!-
.bg2 {
background-image: url(wallpaper.gif);
background-repeat: repeat-x
}
//->
/style
/head
body
table HEIGHT="100%" WIDTH="100%" BORDER="1"
tr
td WIDTH="200" BGCOLOR="#FFFFFF"
some text
/td
td WIDTH="250" CLASS="bg2"
some more text
/td
/tr
/table
/body
/html