Tuesday, October 13, 2009

Play turn Dreamweaver8.0: About the CSS regulation of conflict

Will two or when more CSS regulation applies at identical text version, these regulation may produce conflict and produce accident result. The browser uses CSS regulation by the following means:

If use two kinds of regulation at identical text version, the browser shows all these two kinds of regular attribute, unless specific attribute produces conflict. For example, a kind of regulation may appoint text color to be blue, and another kind of regulation may appoint text color to be red.
If apply at two kinds of regular attribute of identical text version to produce conflict, criterion the browser shows most the regulation inside (the closest from text itself regulation) attribute. Accordingly, if exterior style watch is mixed inside couplet style affects text element at the same time, criterion style of the couplet inside application.
If have direct conflict, define CSS regulation oneself (the regulation that use Class attribute uses) medium attribute will cover the property in HTML label style.
In the give typical examples below, the font that can appoint all H1 paragraph for the style that H1 defines, size and color, but the in defining CSS regula r.Blue to will cover H1 type oneself color setting that applies at this paragraph. Another each defines CSS regular.Red to will enclothe.Blue, because it is located in the interior of.Blue style.

<h1><span Class="Blue">This Paragraph Is Controlled By The.Blue Custom Style And H1
HTML Tag Style. <span Class="Red">Except This Sentence Is Controlled By The.Red Style. </span>
Now We're Back To The.Blue Style. </span></h1>

No comments:

Post a Comment