Skylight_lady Posted December 31, 2011 Share Posted December 31, 2011 Hi guys, These two questions maybe stupid questions but my brain has so many thoughts and I can't figure this out. My first question is that I have seen on one site that they cache their CSS files. What's the case of this? Also, if I was a user in a custom made CMS and changed the colors of texts and background colors in the CSS external file via that CMS with a select box. How do I get this to overwrite the external css file with a simple code? I know it can be done if the CSS was in the page and not an external file via php .... But I'm stuck with changing the external file. Can anyone help and explain this to me please. Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/ Share on other sites More sharing options...
AyKay47 Posted December 31, 2011 Share Posted December 31, 2011 1. the browser caches css files. 2. internal <style> tags will overwrite external css files. Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/#findComment-1302769 Share on other sites More sharing options...
scootstah Posted December 31, 2011 Share Posted December 31, 2011 2. internal <style> tags will overwrite external css files. Only if it's called after the external css file. Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/#findComment-1302886 Share on other sites More sharing options...
AyKay47 Posted December 31, 2011 Share Posted December 31, 2011 2. internal <style> tags will overwrite external css files. Only if it's called after the external css file. yeah, css code is parsed top to bottom. unless "!important" is used. Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/#findComment-1302938 Share on other sites More sharing options...
casper_ghost Posted January 2, 2012 Share Posted January 2, 2012 !important" is that a css class? never seen it Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/#findComment-1303341 Share on other sites More sharing options...
AyKay47 Posted January 2, 2012 Share Posted January 2, 2012 !important" is that a css class? never seen it it is a CSS declaration that makes sure that the CSS properties associated with the !important rule will always be applied, and will not be overwritten by conflicting CSS. for reading, http://webdesign.about.com/od/css/f/blcssfaqimportn.htm Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/#findComment-1303346 Share on other sites More sharing options...
casper_ghost Posted January 2, 2012 Share Posted January 2, 2012 !important" is that a css class? never seen it it is a CSS declaration that makes sure that the CSS properties associated with the !important rule will always be applied, and will not be overwritten by conflicting CSS. for reading, http://webdesign.about.com/od/css/f/blcssfaqimportn.htm thank you Quote Link to comment https://forums.phpfreaks.com/topic/254112-user-change-css-for-template/#findComment-1303467 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.