Eivo Posted September 6, 2007 Share Posted September 6, 2007 This may sound weird, but is there any way to have CSS not effect a specific element? I have inherited a project in which the site is already coded using HTML and CSS. I am adding some dynamic content to the site, but the CSS is effecting my code and I don't want it to. Am I going to have to redo the site or is there a way to prevent CSS from effecting my code? Link to comment Share on other sites More sharing options...
sircharlo Posted September 6, 2007 Share Posted September 6, 2007 What exactly is being changed in your dynamic content ? (eg. scrollbar color, font, etc ) Link to comment Share on other sites More sharing options...
Eivo Posted September 6, 2007 Author Share Posted September 6, 2007 Many things; tables, links, fonts, and colors just to name what I have found so far.For a little more clarification, like I stated before, we have a site made. This site is going to demo a content management system I made. The text editor for the system lets the user add pictures, set fonts and colors, add tables, add flash, and the whole kit-n-kaboodle. It takes the page they made in the text editor, stores it in our db, and this demo site calls it up as they made it. But the CSS for the parts of the site that the client did not create, is effecting the parts they did create. So I am looking for a way to prevent the CSS from effecting this code without having to redo all the CSS for the siteIf it isn't possible, then I have no choice, but I am looking for a shortcut if there is one. Thanks. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 6, 2007 Share Posted September 6, 2007 There might be a rule that you can add that would affect the things you want to affect, but you would have to show the code in question. You can't just prevent CSS from affecting something, but you might be able to write a rule that will affect only what you want to affect. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.