On Wed, Aug 13, 2014 at 3:49 PM, John D <xfs...@hotmail.com> wrote: > Just noticed that a joomla site has the following code: > Is this correct especially th items in square brackets? > I thought the easiest way is to write something like this: > Why are they using square brackets?
Begins: p[class^="al"] { background: red; } Ends: p[class$="al"] { background: blue; } Contains: p[class*="tr"] { background: green; } Here's an older thread on same/similar question: <http://archivist.incutio.com/viewlist/css-discuss/119897> -- <git.io/micky> ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/