Is there a way to apply CSS styles to dynamically generated divs?
In this case, In WordPress, I have a div class of .profiles and dynamically generated div ID’s within that class of #profile-1, 2, 3 etc.
What I want to do, is apply the same styling to each profile-1, 2 etc div id’s without having to specify the styling in each and every one within the stylesheet.
Is this possible?
Thanks!!
I may not be fully understanding the question, but couldn’t you just create a style for the class .profiles in your css? If all of your divs use that class, then it should work just fine.