views:

69

answers:

3

I installed 'Thank you plugin' but the button on my test site but the button looks strange.

I found why. Because it inherits #commentform textarea { width: 45%;} from my theme. If I remove the width from css the button looks ok. Any idea how I can fix that? Of course I do not want to remove width for #commentform textarea. Can I do something about that on css level of the button? Something like with:not-inherit; width:reset; ? I'd say that the width of the button wouldn't be declared at all if there was no #commentform textarea

A: 

you can add "!important" to the newer css.

ex :

first{ float:right;}
second{ float:left !important;}



<div class="first second"></div>

This div should be float left

Stephane
`float: left !important;`
icio
`float:left !important;` didn't help. I believe it is about the width
Radek
hehe sorry, the float left was just an exemple to show how to override a previous css, not the solution to your problem :) anyway, you found the solution.
Stephane
+1  A: 

Try putting

width: auto;

on the button. That should fix it in this case.

jimr
@jimr: `width: auto;` looks good. I guess the background image is the trouble thing now. But it should be ok from css point of view. Thank you for that.
Radek
A: 

Put this in your css and also remove that inline styling you have there for that button:

input.thanks_button{
    background:url("http://asha.onalllevels.com/wp-content/plugins/thanks-you-counter-button/images/thanks_compact_blue1.png") no-repeat;
    color:#fff;
    font-family:Verdana,Arial,Sans-Serif;
    font-size:14px;
    font-weight:normal;
    width:auto !important;
}
GaVrA
not sure what you mean by `remove inline styling`. I tried to remove anything like inline using firebug along with your code and it had no affect. Not sure if I did it right way :-(
Radek