2008-09-13, 02:35 AM
Hi,
I have a rather challenging CSS/template problem, maybe you can help me. I'm going for a table-less, line-less look in my current theme, and so I have to make differentiation by color.
Basically, I want to be able to change the color of a whole <tr> when I hover the mouse over it.
Pictures will explain the matter better (some of these are too dark too see here on a light background, but on a similarly dark one you can see the hover effect well; also don't mind the forum icons, those will not be in the final theme):
This is how my thread listings look like originally.
When you select a thread for moderation, it activates the class '.trow_selected td'. That colors the whole row, like so:
I'd like to emulate that when I mouse over forum and thread listings. Currently, I've defined ':hover' classes for the '.trow1' and '.trow2',
but the only manages these:
...you get the idea. Not to mention that they do that for all '.trows', whether or not they're forum or thread listings.
Like I said, I'd like to do that for the entire row, in just both the forum and thread listings.
Anybody that can help me? Note that I've already removed the counters for threads and posts on the index, as well as ratings in thread listings in the templates, so you can opt to leave these out in the consideration. I'd preferably like suggestions for code that'd also work in IE, although that isn't as critical. I'll take all the help I can get!
I have a rather challenging CSS/template problem, maybe you can help me. I'm going for a table-less, line-less look in my current theme, and so I have to make differentiation by color.
Basically, I want to be able to change the color of a whole <tr> when I hover the mouse over it.
Pictures will explain the matter better (some of these are too dark too see here on a light background, but on a similarly dark one you can see the hover effect well; also don't mind the forum icons, those will not be in the final theme):
This is how my thread listings look like originally.
When you select a thread for moderation, it activates the class '.trow_selected td'. That colors the whole row, like so:
I'd like to emulate that when I mouse over forum and thread listings. Currently, I've defined ':hover' classes for the '.trow1' and '.trow2',
.trow1:hover { background: #color; }
.trow2:hover { background: #color; }
but the only manages these:
...you get the idea. Not to mention that they do that for all '.trows', whether or not they're forum or thread listings.
Like I said, I'd like to do that for the entire row, in just both the forum and thread listings.
Anybody that can help me? Note that I've already removed the counters for threads and posts on the index, as well as ratings in thread listings in the templates, so you can opt to leave these out in the consideration. I'd preferably like suggestions for code that'd also work in IE, although that isn't as critical. I'll take all the help I can get!