Learn how to a build a cloud-first strategyRegister Now


HTML CSS control

Posted on 2014-07-13
Medium Priority
Last Modified: 2014-07-14
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
Question by:imediagroup
  • 2
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 40193110
What does this mean?

when I use include newhtml

Author Comment

ID: 40193207
<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
LVL 54

Expert Comment

by:Scott Fell, EE MVE
ID: 40193329
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?  http://sscce.org/

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.
LVL 53

Accepted Solution

COBOLdinosaur earned 2000 total points
ID: 40193405
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.


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question