HTML and CSS Reference
In-Depth Information
I want to understand about the many
connections and relations which occur to
me, how the matter in question was first
thought of or arrived at, etc., etc.</p>
If you want to style the first line differently, what do you do? One
option is to insert elements to signify the first line:
<p><span class="first">I never am
really</span> satisfied that I
understand anything; because,
understand it well as I may, my
comprehension can only be an
infinitesimal fraction of all I want
to understand about the many
connections and relations which
occur to me, how the matter in
question was first thought of or
arrived at, etc., etc.</p>
This looks OK in the example, but what if the user's screen is wider or
narrower, or their font is larger, as in the following examples?
Pseudo-elements vs. pseudo-classes
Pseudo-elements create virtual elements within your document, as opposed to
pseudo-classes, which rely on properties of the document entered by the author.
In CSS3, pseudo-elements are distinguished by a double colon ( :: ) rather than
the single colon of a pseudo-class. This differs from CSS2, where both used a
single colon.
Search WWH ::




Custom Search