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 to center a textarea using CSS?

    How to strach div in some line to “all left space” with css

    How do i make the evenly spread elements in my nav bar not touch the edges of the page?

    How to make a 'ease out' on focus loss in CSS

    How to size a content div to cover the entire content area in jQuery Mobile

    How can I enqueue Internet Explorer specific stylesheets in the Wordpress functions folder?

    how to tint image in div when clicked for 0.5 seconds

    How to Use CSS transitions

    How to check if the flash message set is empty in cakephp

    li:before{ content: “■”; } How to Encode this Special Character as a Bullit in an Email Stationery?

    How do I scale the size of the elements in my HTML according to screen size?

    Screen scraping pages that use CSS for layout and formatting…how to scrape the CSS applicable to the html?

    How to create live event for css

    How to make css width work in firefox

    How to create css code that works for all browser?

    How to design a full width bar with HTML and CSS [closed]

    Behavior/Styling Separation - How to use IDs, classes and custom attributes for CSS and JavaScript?

    How can a transformed Image transition back to it's original shape when hovered?

    How to align buttons below and right-aligned to a HTML list?

    How to align divs right and left while using the CSS ghost element technique for vertical centering?

    how to overwrite css height set by jquery/javascript?

    VERY BASIC: How to inline social media logos on a header

    PHP: _POST and CSS, how to show an active link

    How to Vertically Center 2 anchor tags with CSS?

    CSS - How to match class (one dynamic and one static) between two elements

    How to make a visible rectangular frame in CSS to contain some sections of my view?

    How to avoid CSS conflict using jquery?

    How to have a background image properly fade in with CSS

    How can I wrap this text so it doesn't overflow past the widget container?

    How to remove border-bottom of last div in a group - CSS