Is there any way to clear all CSS properties?

He has: 688 posts

Joined: Feb 2001

I have a website with lots o' CSS dictating the layout. I then embedded a WordPress blog into my website template but the CSS from the site has created many conflicts with the CSS from the blog. Is there any way to create a div or whatever that first says "forget all inhereted CSS from the header or elsewhere and only do this new CSS"? (like the techie language there?)

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Not that I know of. You'd just have to reset all the properties to the default (or 0, whichever you want to work from). Try Eric Meyer's CSS reset as a starting point. Instead of setting this on the body you'd set this on your containing div.

He has: 629 posts

Joined: May 2007

It sounds like you are linking to your site's CSS file(s) from your WordPress installation. If you are using a separate WordPress theme, then simply don't link to your site's CSS on the WordPress pages...

If you can't do that, we need to know more about your setup in order to help.

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.