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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ignore all styles

Status
Not open for further replies.

ushtabalakh

Programmer
Jun 4, 2007
132
Hi there,
I used to have a static website with bunch of html files in it, and now I have upgraded to a content management program.

The program that I'm using now, has its own set of styles in css files and in the page itself.

My html files also had their own set of styles defined in each individual html file.

I have entered the contents of those html files into my program, and now the styles of the content management program are preferred over the styles of my html files and that makes my pages look weird.

I'm looking for a tag or something that could tell the browser that it should ignore all the styles that are defined prior to a line, a tag that would look like <nostyle> </nostyle> and would let the elements inside the tag have their own independent set of styles regardless of what other styles defined out of the tag.

Does such magical tag exist? any ideas on how to avoid this problem?

The program is written in php so any related features of php language would also be useful.

Thanks
 
No, there's nothing like that. You could simply not load the CMS stylesheet, you could edit that stylesheet to include your own styling or you could make your own stylesheet that would immediately reverse all the styles set in the CMS stylesheet (this is not a preferred method). I would suggest you find in the CMS where the stylesheet is added and change that to include yours.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
the problem is, each page has a different set of styles, so there is really no "my own styles".
 
Are these all pages of one website? Then you're misusing the stylesheet, as the stylesheet should apply to the site in whole and not individual pages.

___________________________________________________________
[small]Do something about world cancer today: PACT[/small]
 
yes they are all of the same website but they have different styles because each one is uniquely different. they are made by different people for different reasons.

I guess there is no way around I should just change each and everyone of them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top