Matt
Matt

Reputation: 1

styling affected by parent page css

I'm hosting a webpage and wrapping my content (the body) with a 3rd party websites header/footer html and their styling. I have my own styling associated with the content in the body of the page but some of the 3rd party websites styling is affecting my content. Is there something I can wrap my HTML code with to block the styling from the 3rd party?

Upvotes: 0

Views: 2149

Answers (2)

Soatl
Soatl

Reputation: 10592

Add !important to the end of your css to ensure that no other css over rides it

ex:

#Something
{
    color: White !important;
}

Upvotes: 0

jessegavin
jessegavin

Reputation: 75690

You must be mistaken. That can't happen.

You might be including the same style sheets in both the parent page and the iframe content page.

Upvotes: 1

Related Questions