Title: CSS code work at elements test but doesn&#039;t work at Child theme
Last modified: August 30, 2016

---

# CSS code work at elements test but doesn't work at Child theme

 *  [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-work-at-elements-test-but-doesnt-work-at-child-theme/)
 * Hello,
 * I tested the follow codes at chrome elements and it is work. But why doesn’t 
   work in child theme? The child theme is currently working fine with other codes:
 *     ```
       .main {
       float: left;
       width: 100%;
       min-height: 500px !important;
       padding:0 0 75px
       }
       ```
   
 * (I’m talking about `min-height: 500px !important;`)
 * I have function.php file as follows:
 *     ```
       <?php
       add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', PHP_INT_MAX );
       function theme_enqueue_styles() {
           wp_enqueue_style( 'parent-style', get_template_directory_uri() . 'BookYourTravel/css/style.css' );
           wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/styles/child-style.css', array( 'parent-style' ) );
       }
       ```
   
 * I consulted the theme developer but they can’t fix it. So I want to get help 
   from here. Please help and advise what’s wrong.
 * Thanks in advance!

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

 *  Moderator [Jose Castaneda](https://wordpress.org/support/users/jcastaneda/)
 * (@jcastaneda)
 * THEME COFFEE MONKEY
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-work-at-elements-test-but-doesnt-work-at-child-theme/#post-6613837)
 * Hi cfm168!
 * Are you able to share a link to the site?
 * What theme are you using and where did you get it from?
 * Taking a quick look at the code you shared, appears the parent style may not 
   be loading properly but it is hard to know for sure without looking at the site.
 *  Thread Starter [cfm168](https://wordpress.org/support/users/cfm168/)
 * (@cfm168)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-work-at-elements-test-but-doesnt-work-at-child-theme/#post-6613851)
 * Hi,
 * I am using theme: BookYourTravel
    My site link at: yudooo dot com You can see
   I want to reduce space between footer and the destination 4 images.
 * Thanks in advance!

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

The topic ‘CSS code work at elements test but doesn't work at Child theme’ is closed
to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [cfm168](https://wordpress.org/support/users/cfm168/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/css-code-work-at-elements-test-but-doesnt-work-at-child-theme/#post-6613851)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
