Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Target HTML5 Attribute?

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #160577
    Steven Morgan
    Participant

    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?

    #160578
    Alen
    Participant

    Can you add class/id?

    #160579
    __
    Participant
    [data-src]{ /* rules go here */ }
    
    #160580
    Steven Morgan
    Participant

    Perfect. Both work. @Alen , cannot believe I didn’t just do that.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.