Select element only if a later sibling exists
A neat little trick You can achieve what you want by using a trick to check if the <section> element is the only element in <main>. This will not work, if there are any other elements there. In your case it should work like this (http://jsfiddle.net/Ljm323qb/2/): section { max-width: 500px; } /* The STAR of … Read more