How to use CSS Seletor to capture attribute


Tags:
css,css-selectors

Problem :

I want capture all "data-video-source" in HTML page.

How I do?

enter image description here



Solution :

Try a[data-video-source] { }

You can also select elements with a specific value to the attribute. More here: http://www.w3schools.com/css/css_attribute_selectors.asp


    CSS Howto..

    How do I remove applied css on a div by JQuery?

    How to hide Firefox context menu to show my own menu instead?

    how to make triangle in css [closed]

    How to make input box show up from right to left?

    Google Chrome unresponsive on simple CSS page - how to fix?

    How can I override the CSS ul menu for the JavaScript autocomplete?

    How do device screen resolutions scale in CSS?

    How to remove gap between elements when using CSS3 table-row/header/footer-group in Firefox?

    How to call a function for each element with a particular class, every time the window scrolls (jquery))

    How to generate css using google chrome inspector to further use them?

    How to animate a div to move from end to end infinitely

    How to include css and jquery in joomla component

    How to change elevation property of paper-card?

    how to make opacity of div lower than the over layered iframe

    2nd image appears as mirror image in IE— CSS image FLIP transform- How to fix?

    How do I add HTML files to a GitHub repo?

    How to make TD behaving like TR(row) with CSS?

    How to display picture from center, small frame bigger picture

    How should I do this in CSS?

    How to make CSS menu bar activated only after my mouse cursor is at the menu.

    How to animate some parts of an image using CSS?

    How to deal with collapsing margins on html & body?

    Fontawesome: How to control height and width of stacked icons

    how to read content in a webpage that doesn't appear in page source

    How do I make a horizontal sitemap using UL?

    How to align text within div?

    How to add an image to an anchor tag using CSS?

    how to center submenu under the parent `
  • `
  • How to keep footer at bottom of screen using jQuery

    CSS: how to style a div so that it has no effect