Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header CSS in AJAX content

Status
Not open for further replies.

JohnandSwifty

Technical User
May 31, 2005
192
GB
We have a CRM app that we have ported to AJAX and everything is great. The only issue is that loading email content (unpredictable external email from 'x' different clients) contains header CSS styles which [in FF and Chrome] override styles in the app.

We have two options at the moment which are processing each email and converting head styles to inline, or giving any head style unique names (unique from our app). Any ideas how to just stop the page picking up the styles?

Thanks
 
If it is just a few styles, you could add !important to them in your stylesheet. That should thwart any attempts from additional sheets to override your styles. Also, you could try increasing the specificity of your declarations -- making sure your specificity is higher than the one from the external emails.

The best option I would say, is still to parse out any styling from the external email.

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top