Forum Moderators: not2easy

Message Too Old, No Replies

background color

doesn't display correctly in table

         

seashell

4:39 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



I created a simple html table with classes assigned to rows to alter the background color. I have a dark heading row which displays fine. I have a medium subheading row which also displays fine. The data is contained in rows with a light background. The first row of the light colored background displays fine, but the rows after that display in the default table background color which is gray. The last row of data in light colored cells also displays correctly. It's very strange, because if I open a new window over the top of it, and minimize it, the color appears correctly, but only where the window was covering it. When I refresh the page, it goes back to just the first line having color. Does this sound like it's caused by IE being flaky or an error in my code? It seems to work locally, but not on the web server, because when I created the page I had no problems.

Here's my CSS:
@media all {
.bg {BACKGROUND-COLOR: #CCCCCC; }
.drk {BACKGROUND: url(styleimg/drkblue.gif); COLOR: #EEEEEE; }
.med {COLOR: #EEEEEE; BACKGROUND: url(styleimg/medblue.gif); }
.lt {BACKGROUND: url(styleimg/ltblue.gif); }
}

Here's how I call it within table:
<TR VALIGN="top" CLASS="drk">
I use the different colors to designate headings etc.

Any suggestions would be helpful. Thanks!

Shadows Papa

4:46 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



I'd seriously try it with another computer. I've seen IE (and things based on IE, like FP) do similar. Trying it on another computer, even with the same software, will tell you if it's code. I bet it's the browser (might even be combo broswer/video driver)

Shadows Papa
(been a PC tech for many years)

seashell

4:50 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



That's what I suspected. I know I've had the same results on different computers, but I just now tried it on two different computers and it was fine. My only concern was people thinking I'm a moron, but I guess I have no control over that = )

Thanks!

Shadows Papa

5:11 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



No problem. Some day you'll answer a question that's easy for you but difficult for others.

There are no stupid questions, but I've seen some doozy answers. :-) If you are a moron, I'd hate to think how I look now and then.

Shadows Papa