× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The order in which styles are located by the browser are as follows:

1. Any inline style sheets (ie. inside an HTML element)
2. Any internal style sheets (ie. inside <head> tag)
3. Any external style sheets.

If your HTML is picking up the wrong style it is probably because it is finding another definition first. It is probably quicker to just change the order of the style sheets in order to ensure your style is located first.

You can also increase the "weight" of your style sheet rule. Rules with increased weight take precedence over "normal" weight. For example:
P (color: black} /* normal weight */

P {color: red ! important} /* this has increased weight and should take precedence*/


Hope this helps

Syd


----- Original Message -----
From: "Pete Helgren" <Pete@xxxxxxxxxx>
To: "Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx>
Sent: Thursday, November 06, 2008 2:59 PM
Subject: [WEB400] css name clashes


Anyone have a tool that detects css name clashes? I did some poking
around the web and couldn't find anything immediately useful.

What I have is a situation where a particular element isn't displaying
correctly on a page. The page was an agglomeration of several pages,
each of which had a fully functioning example when run separately. When
I added all these stand alone elements to a single page, a couple of
elements no longer display correctly.

I will use a process of elimination to figure out which .css files has
the conflict but it would be pretty handy to have something that would
read through a series of css references on a page and tell you if you
have definitions in more than one file that could cause conflicts.

Pete Helgren
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.


Scanned by IFB SafeMail http://www.ifb.net for spam/UCE and virus content.
IFB Spam-Score: (0.476)

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.