Question about multiple css pages referenced in an html file

Posted on 2011-04-26
Last Modified: 2012-05-11
I have a web page that is referencing 3 css pages and the formatting is conflicting with each other. 2 of the css pages are external and so I don't really have the option of modifying the internal contents of those pages (these are google gadgets - theoretically I could download the css code, modify it and store it locally, but that would be a maintenance headache).

So I was wondering if there is some way within html to say

"only css file X applies to this div tag".

Or maybe there's some other way of getting around this problem that I'm not considering.
Question by:opike
    LVL 9

    Accepted Solution

    put your css file at the end:

    1 google css
    2 google css
    3 Your CSS

    this way your css file will have priority above google's one.

    See this page:

    Author Comment

    Yeah, I realized that would solve one of my problems. The other problem is the 2 google css files are also stepping on each other.
    LVL 9

    Expert Comment

    by:Roman Gherman
    you will have to rewrite needed css in your file.

    I don't know any other way of doing that.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
    In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now