bovine
bovine
KPCKevin Powell - Community
Created by bovine on 6/14/2024 in #front-end
Border radius and backgrounds
Thanks for the replies. Yes, so the parent element contains multiple distinct child elements that are conditionally shown. Some have backgrounds, some don't. Thus one user might see a child with a background as their first element and another might not - hence not being sure which is first and thus I can't apply a border radius, as if it is the second element the border radius shouldn't be there. Being distinct I am able to target these by their class names and determine if it is the first within the parent, however this is a high maintenance approach so was hoping maybe there would be a way that would not require such verbose rule selectors.
10 replies
KPCKevin Powell - Community
Created by bovine on 6/14/2024 in #front-end
Border radius and backgrounds
Please read the description. I already stated this is not possible due dynamic content meaning the element may or may not appear at the parent's edge.
10 replies