You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue where to make a CSS example for the CSS property scroll-snap-align behave consistently I need to be able to apply the selected value to all child nodes.
Currently I believe I can only target one element, by giving it the ID example-element. I actually need to target that element and all of the siblings. Would it be possible to make it so that a class can be targeted instead as this would mean I could apply the property to all children. Otherwise I think the solution will be to use some JavaScript to do so.
In the example below, I want to be able to apply scroll-snap-align to all of the children and not just the one with the ID.
I have an issue where to make a CSS example for the CSS property
scroll-snap-align
behave consistently I need to be able to apply the selected value to all child nodes.Currently I believe I can only target one element, by giving it the ID
example-element
. I actually need to target that element and all of the siblings. Would it be possible to make it so that a class can be targeted instead as this would mean I could apply the property to all children. Otherwise I think the solution will be to use some JavaScript to do so.In the example below, I want to be able to apply
scroll-snap-align
to all of the children and not just the one with the ID.The text was updated successfully, but these errors were encountered: