Title: Child Theme CSS
Last modified: August 30, 2016

---

# Child Theme CSS

 *  Resolved [naddy30](https://wordpress.org/support/users/naddy30/)
 * (@naddy30)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/child-theme-css-7/)
 * There is this code from Woocommerce.
 * .woocommerce img, .woocommerce-page img {
    height: 45px; max-width: 100%; }
 * I can make changes in the Child Theme
    But how can I comment out or remove height:
   45px;
 * So it becomes:
 * .woocommerce img, .woocommerce-page img {
    max-width: 100%; }
 * If you comment it out on the child theme /* height: 45px; */
    It will just revert
   back to the original css from woocommerce

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [codemovement.pk](https://wordpress.org/support/users/codemovementpk/)
 * (@codemovementpk)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/child-theme-css-7/#post-6871606)
 * you have to set height:0px in your child theme
 *  Thread Starter [naddy30](https://wordpress.org/support/users/naddy30/)
 * (@naddy30)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/child-theme-css-7/#post-6871629)
 * Thanks Man – I appreciate your reply.
 * It can’t be set to a specific size – because the image size needs to keep its
   original size + {max-width: 100%}
 * If I remove the {height:45px} from the woocommerce-layout.css it will default
   to the images original height.
 * So I know that it works…
    The problem is that when I update woocommerce at some
   point I will need to change that code again.
 * I’ve been looking for a way to remove it -> using the Child Theme
 *  [dimitris33](https://wordpress.org/support/users/dimitris33/)
 * (@dimitris33)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/child-theme-css-7/#post-6871660)
 * The default value for height is auto, you can use that in your child theme
 * [http://www.w3schools.com/cssref/pr_dim_height.asp](http://www.w3schools.com/cssref/pr_dim_height.asp)
 *  Thread Starter [naddy30](https://wordpress.org/support/users/naddy30/)
 * (@naddy30)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/child-theme-css-7/#post-6871668)
 * Thank you!
    height: auto;

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Child Theme CSS’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * 4 replies
 * 3 participants
 * Last reply from: [naddy30](https://wordpress.org/support/users/naddy30/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/child-theme-css-7/#post-6871668)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
