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

Derek Read

Reply to: CSS: Hiding Specific PIs and Styling Selected PIs Differently

You 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.

Reply

Products
Downloads
Support