jonsmth948 Posted January 29, 2013 Share Posted January 29, 2013 In Wordpress. I have 2 css files one name style.css and the other called custom.css How do you unset a style by typing a line of code. Example in what I'm trying to accomplish. Custom.css body { 'remove all styles for the body tag'} defalt.css body {background:blue; font: Helvetica;} Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 29, 2013 Share Posted January 29, 2013 Moving to CSS forum. Quote Link to comment Share on other sites More sharing options...
kicken Posted January 29, 2013 Share Posted January 29, 2013 There isn't any way (afaik) to simply remove a style definition from one rule inside another, you can only override it's value. You'd just have to override it and reset it to it's "default" value. Quote Link to comment Share on other sites More sharing options...
jonsmth948 Posted January 30, 2013 Author Share Posted January 30, 2013 How do you override it to a default value? Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 30, 2013 Share Posted January 30, 2013 You have to look up what the default value is in the documentation, then set it to that. For example, the default value for text-decoration for an a is underline. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.