How can I set a css property to tags with specific attribute?

Tags: jquery,css,google-chrome,google-chrome-extension

Problem :

I want to change font of using extension like stylebot but I only want change fonts in tag with attribue: dir="rtl" like this:

<div dir="rtl">سلام به همگی</div>

It only changes font of rtl languages text, I Know it is possible by jquery but I don't how can I do this with css or any extension the run jquery on other webpages.

Thanks for your help

Solution :

Use the Attribute Selector for CSS

div[dir="rtl"] {
  font-family: "Your Font";

    CSS Howto..

    How to use Custom Fonts using CSS?

    Jquery how to get specific css values from css properties with stacked value options such as font-family

    How to position an element relative to the background image width

    How can I do this: text inside rectangle using HTML/CSS?

    How to force Google's custom search to be responsive?

    How to float elements in rows.

    How do I increase the spacing between different parts of blockquotes with CSS?

    How do I keep a CSS hover rule applied when the mouse moves to the child element?

    Best Practice (jQuery, CSS): How to initialize hidden elements that will toggle visible?

    How do I make a div expand to the width of the page with css?

    How to apply css class to a based on respective $value in a of that row in a repeat region

    How to select an element that has id starting with a digit (css)?

    How to scale canvas and keep its position on screen?

    How to put CSS and HTML in one page of code? [duplicate]

    How to arrange div structure with radius using CSS

    Images don't show up in quiz results after start over button

    How to center webpage content

    How can I line up my CSS DIVs

    How do I interact with @font-face definitions using the Chrome debugger?

    How should I change css style of fixed element to not crossing scrollbar

    How can I change the css class rules using jQuery?

    Changing the color of the tomb. How do I do this?

    Parallax image shows at top of page on load

    How can I fix this jumbotron/carousel to be the size of the image?

    How to Assign on demand CSS Styles to some div or class?

    Prestashop - How to edit views [closed]

    How to hyperlink CSS-made images? [closed]

    How to find absolute path to @font-face fonts with Firebug?

    How to.. the middle div of three ever on center and if the navigator are resized

    How to animate to position fixed?