Created
April 10, 2013 07:48
-
-
Save byronrode/5352634 to your computer and use it in GitHub Desktop.
How to overwrite CSS in a child theme or custom CSS file. Here I want to change the background colour and colour of an element with the class of "my_cool_css_class".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Parent CSS file*/ | |
.my_cool_css_class {background:#fff;border-radius:5px;box-shadow:1px 1px 2px #000;color:#ff2361;padding:0px 10px;line-height:25px;height:25px;width:100%;} | |
/* This is WRONG. Very WRONG. */ | |
/* Child Theme or Custom CSS file */ | |
.my_cool_css_class {background:#2d2d2d;border-radius:5px;box-shadow:1px 1px 2px #000;color:#fff;padding:0px 10px;line-height:25px;height:25px;width:100%;} | |
/* This is RIGHT. Very RIGHT. */ | |
/* Child Theme or Custom CSS file */ | |
.my_cool_css_class {background:#2d2d2d;color:#fff;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment