HTML CSS control

How can I control the style.css so when I use include newhtml uses another style1.css not style.css

My site has already been his style, when I use include some html I want to have a second stylw only that page
Who is Participating?
I assume you are using some third party junk written by a developer of limit ability if you have such a problem. If you don't want the page to use some of the styles in style.css either don't put it in the page or override the styles with a second stylesheet.

OR... take the professional approach of rationalizing the CSS and markup so you do not have such self-limiting conflicts.  Such a thing should never happen in a properly organized development environment so there should be no reason it would ever happen for a live site.

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
What does this mean?

when I use include newhtml
imediagroupAuthor Commented:
<link rel="stylesheet" rev="stylesheet" href="all.css" media="all">
<script src="all.js" type="text/javascript" language="javascript" charset="UTF-8"></script>

include new.html

My problem is that new.html uses some components of all.css we do not want. if I can do something to new.html uses only his css
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I'm sorry, I still don't know what you are trying to ask.  

Can you provide a working sample?  Perhaps a link to an actual test page?

If what you have it private, that is fine, we don't need your 1000 lines of code anyway.  Just reproduce it with only sample / fake data and post it to a url we can surf to.  If your site is not "live" yet. That is ok too, you will need to eventually make it live and your data is sample data, therefor, you can freely post a link to your sample page.

I think without that, it is going to be very difficult to understand what you are asking.  I don't know if you mean in include file, import or just some html on a page.

Thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.