The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Target HTML5 Attribute?
Is there a way to target something like this with CSS?
<div data-src="Images/slide-1.jpg"></div>
I have to use the data source because camera.js uses that. I’m trying to target the images to make it a parallax slider. Any ideas?
Can you add class/id?
[data-src]{ /* rules go here */ }
Perfect. Both work. @Alen , cannot believe I didn’t just do that.