PcGeniusProductions Posted January 19, 2009 Share Posted January 19, 2009 Hi. I have an EXTREMELY large code (a full phpBB3 template, to be exact) and have so far had great success with integrating it into my Joomla System. I have come across a problem, that I have no idea how to fix, or what questions to ask. Basically, the CSS from my Joomla Template is clashing with the Forum template. Is there a way to isolate a section of code so it does not inherit 3rd-party CSS Styles? If not, then is there another way to fix my problem? I am not looking for a professional job, I simply want it to work. Thanks for your info. Quote Link to comment Share on other sites More sharing options...
iarp Posted January 19, 2009 Share Posted January 19, 2009 Try adding !important just after the css entries you want to keep. ie.. #content { width: 1000px !important; } It'll make sure that that is the value to follow. Also need to counter balance any other css values the other one contains that you don't want... like margins and paddings and backgrounds and such. Quote Link to comment Share on other sites More sharing options...
PcGeniusProductions Posted January 19, 2009 Author Share Posted January 19, 2009 Ahh, finally a result... The suggested method "works" to a degree, but it works "too much" if you get what I mean... Instead of simply protecting its own code, it has gone and overridden my Joomla Template too. This should not be a problem, it is a simple matter of CSS ID Clashes... I hope Thanks for your help, this has gotten me back on track Very much appreciated.. Quote Link to comment Share on other sites More sharing options...
PcGeniusProductions Posted January 19, 2009 Author Share Posted January 19, 2009 Is there a way to apply a linked CSS file ONLY to the contents of a specified DIV or some kind of container? Quote Link to comment Share on other sites More sharing options...
iarp Posted January 20, 2009 Share Posted January 20, 2009 Might be easier to just rename the div? no? Quote Link to comment Share on other sites More sharing options...
PcGeniusProductions Posted January 20, 2009 Author Share Posted January 20, 2009 If it was that easy, I would have done it straight away. My problem is, that I am visually integrating my phpBB3 Style into my Joomla Template. The CSS is clashing. The only solid fix I know of, is to manually go through dozens of files, and rename thousands of CSS Tags. This is a last resout, I am desperately searching for a more efficient and time saving way to do this. Come to think of it, it would probably result in the most stable forrum than if I were to cheat and limit the CSS to only one DIV. Summery Question... I have a whole forum system of styles. Is there away to funnel those stylers into only one DIV? E.g., If I was to wrap the entire forum inside <div id="forum-wrap"> then tell the CSS to ONLY apply its styles to the content within that DIV, and nothing else. Is this possible? Or do I need to manually go through everything? Hope this explains more. 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.