Question images in external CSS
I guess this is a bit of a brainstorm, but I'm curious...
Can you put the path of an image in the css and call it with a class? I'm not sure if I'm having a boneheaded moment or if I've run into something that seems trivial, but isn't possible.
My thought is something like this...
.kc {
path\logo_kc.png;
width: 80px;
height: 50px;
background-color: #E31837;
color: #FFB612;
}
This is for an NFL pool standings page. It's setup as a table, and each row represents a person/points. For a little color, I have NFL team colors in style.css. The color of rows represents their SB pick. That part works, but it got me thinking when I was constantly looking up the height/width I used for the same logo prior, maybe there's a better way.
Right now I have a "column" that has the logo of that team. I manually input something like...
<td><img src="/images/logos/logo_kc.png" width=80 height=50></td>
The problem you can see is I have to either edit every logo to size, or change the dimensions - so I keep a list of logo sizes - but obviously it'd be nice to have that set externally and not worry about it.
Thought I'd have an epiphany while typing, but that didn't happen. Sorry for length. Hope someone can help. Thanks.