Greenshift’s inline HTML style elements break or flip nth-child selectors
-
Problem: The CSS selector
:nth-child
e.g. for creating sections with alternating background colors (for a mix of successive Native Group blocks or Greenshift Container blocks), gets broken by Greenshift’s inserted<style>
elements:?
?
Fix / Workaround: Use
div:nth-of-type()
and be sure that all your group/container blocks uniformly use<div>
as the HTML element:Note: If a future version of Greenshift allows one to set the HTML element type for its Container block to be more semantic HTML, then your selector would be e.g.
section:nth-of-type
.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Greenshift’s inline HTML style elements break or flip nth-child selectors’ is closed to new replies.