How to give a property to an element using its title in css [duplicate]


Tags: html,css,properties

Problem :

This question already has an answer here:

is it possible to give a property to an element using its title?

example:

 #id > a.class

but the title instead of the id

 "title" a.class


Solution :

Yes, it's possible, see the code below:

a[title="test"] {
 color : red;
}
<a title="test" href="#">Test Link</a>


    CSS Howto..

    How to display a custom css animation with jquery and fall back to just show() if not supported?

    How to make the search form without the search button?

    how to display a list inline using HTML and CSS

    CSS How to I align a header with a height of 2em to the bottom

    How can I get drop-down functionality working with CSS?

    HTML/CSS/jQuery: How to set an “absolute text bottom” so that further text expands upwards?

    CSS: how to position buttons in groups across a row on a web page

    CSS: How to produce rounded boxed list

    How to use Resource bundle(Client Bundle) in JSNI?

    How to make a scrollable div inside of a div with a specific height

    How to implement a finished coded html/css page into CMS [closed]

    How to create new
  • not affected by SOME css styles
  • How can I have a basic heading and a custom one?

    How to fix smooth text in IE?

    How to add and remove a current state to a link when another is clicked using jQuery

    How to add a id tag in php output?

    How can I push the first row of images down?

    How to align image and text for my html/css

    CSS - How to remove unwanted margin between elements?

    Css code how to create multiple div classes

    How to set the background image width using CSS?

    How to customize bootstrap css when using bootstrap-sass [closed]

    how do i edit my CSS to show following things please [closed]

    Position relative, how to get rid of dead space?

    How to make my buttons responsive?

    How to convert external css properties to inline property? [closed]

    How do I get 3 horizontal divs to stack in different vertical order or flow when browser width decreases?

    How to make text appear under div without moving other items in list?

    How to align tags withina div

    If you remove float: left they are centred, in combination with setting text-align: center with their parent div. That is, their immediate (first) parent div; give this an id....
    Read more

    How to access my .png from a folder using CSS?