how to not inherit? or how to reset inherited width to the value before? (css)

Tags: css,inheritance

Problem :

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

I found out 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 width: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

Solution :

Try putting

width: auto;

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

    CSS Howto..

    How to make a navigation bar have equal spacing?

    Some misunderstanding how to use bootstrap and css

    How to center a image with transparent background in css?

    how can I fetch a website and overwrite some ot its html and css [closed]

    How to draw lines in ionic

    How to show divs inline. css html

    Background images: how to fill whole div if image is small and vice versa

    How to display clicked on/off SVG icon from admin panel page and display result on a different page

    CSS: How to make link colour the same as parent div

    How to make the buttons responsive?

    How to style placeholder text color for individual text field?

    How to hide the button keeping the position? [duplicate]

    How to add color to text in my div with code

    How do I change the css so lowering one class does not lower the other?

    How to include PHP code in CSS?

    How can I make a rounded image with a label in it?

    Floating divs, different height, building from left to right. how to fill vertical gaps between levels?

    how do I apply a class to the header cell for a column in slickgrid

    How to create a simple article design with CSS and HTML5

    How to align items in second (and further) column, so that the changing value (increasing characters) do not push

    How can i align these div containers

    VIM: How to autocomplete in a CSS file with tag ids and class names declared in HTML file

    How to reduce space between unordered list and its previous element(center)?

    How do I make a dropdown extend to the left?

    CSS: how to center a list with image

    navigation bar arrow not showing under each tab CSS

    How to add an image to a transparent box using css

    How to keep transparent radial background smooth in browsers other than Chrome?

    How do I make a CSS triangle with smooth edges?

    How to prevent CSS table row expanding to parent height