MyBB Community Forums

Full Version: Change bg color on
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Change bg color on mouse hover only on this area?



[attachment=29902]
in general we use css style code like below (in global.css file (edit in advanced mode)
.trow1:hover {background: #abcdef!important;}
.trow2:hover {background: #abcdef!important;}


(html color codes)

see also replies at Table Rows Changing colors on hover
(2013-08-08, 06:27 AM).m. Wrote: [ -> ]in general we use css style code like below (in global.css file (edit in advanced mode)
.trow1:hover {background: #abcdef!important;}
.trow2:hover {background: #abcdef!important;}


(html color codes)

see also replies at Table Rows Changing colors on hover

Done...

The threadlist is divided into 4 ... would be better if it were in full effect.
^ forumbit_depth2_forum template code has a <tr> element (near the top)
you can add a class to it (eg. <tr class = "myindexrow">) and use required css style
(eg. .myindexrow:hover {background: #abcdef!important;})
(2013-08-08, 04:54 PM).m. Wrote: [ -> ]^ forumbit_depth2_forum template code has a <tr> element (near the top)
you can add a class to it (eg. <tr class = "myindexrow">) and use required css style
(eg. .myindexrow:hover {background: #abcdef!important;})

nothing happens
edit: try like this
.myindexrow:hover td {background-color: #abcdef!important;}
<style type="text/css">
.myindexrow:hover td {background-color: #abcdef!important;}

</style>

OK...

In forumbit_depth2_forum and forumdisplay_thread i put the code above.

Thanks.

I edit forumdisplay_thread and forumbit_depth2_forum

And put this code

<style type="text/css">
.myindexrow:hover td {background-color: #abcdef!important;}

</style>
^ have you got required hover effect ? if <tr> element is modified (with the class) then only it will work.