Home › Forums › XMetaL Tips and Tricks › CSS: Hiding Specific PIs and Styling Selected PIs Differently › Reply To: CSS: Hiding Specific PIs and Styling Selected PIs Differently
Reply to: CSS: Hiding Specific PIs and Styling Selected PIs Differently
August 10, 2015 at 11:05 pmYou cannot use :before or :after on a node (element, PI or comment) that is not being displayed.
Or rather, you can use it, but when that node is hidden any associated content will also be hidden. The :before and :after content appear before or after the content of the node, but they are contained within the bounding box of that node (along with an child nodes: text nodes or child elements, etc). When the node is hidden everything inside its bounding box is also hidden.