Skip to content

Tag Archives: last-of-type

CSS: Last of specific class, not child of parent


As per discussion in Stackoverflow, at the moment CSS's last-of-type selector is the best way¬†to access last element, but apparently that does not apply to class, but the element. And even so, when trying to create A | B | C NOT, this does not work. <div> <span class="separated">A</span> <span class="separated">B</span> <span class="separated">C</span> <span class="not">NOT</span> […]