Naturally CSS3. Thank you in advance

a { -moz-transition: all 300ms linear; -ms-transition: all 300ms linear; -o-transition: all 300ms linear; -webkit-transition: all 300ms linear; transition: all 300ms linear; } a { color: #0196e3; opacity: 0.8; outline: none; text-decoration: none; } a:hover { color: #6dc23a; opacity: 0.8; outline: none; text-decoration: none; } 
  • 2
    Read about selectors. They will help you access the elements on your page. - zloctb
  • Those. I have css3 code with animation, otherwise it’s all a matter of sticking to everything, and even to those that have a class, and it turns out a mess. - MaximPro
  • Can you show a piece of code where you need to hang the style? - zloctb
  • In general, links like <a href="t2.html"> qwe </a> or <a href=" htmlbook.ru/"> qwe </ a > - MaximPro
  • But they do not have a class, I need to use go classless links. - MaximPro

4 answers 4

The question is exhausted, I found the solution I needed, which I asked:

 a:not([class]){ -moz-transition: all 300ms linear; -ms-transition: all 300ms linear; -o-transition: all 300ms linear; -webkit-transition: all 300ms linear; transition: all 300ms linear; } 

so I get animation and styling links without class!

    Pseudo-selectors , but you can use DOM paths to links, for example:

      <div class="divclass"> <a href="#">1</a> </div> 

    Then CSS:

      .divclass a { // стиль, применяемый к ссылке } 
    • one
      Sir, are you kidding me? - MaximPro
    • one
      I have thousands of links on my site and you suggest that I decide this method? - MaximPro
    • one
      First of all, I suggest an adequate layout. If there are a thousand of them, they can be classified by specifying classes either to the parent elements or to themselves. - Mobyman

    Alternatively, you can use attribute selectors .

    • one
      Not that, I need an extra property. - MaximPro
    • one
      those of all classes without their listing - MaximPro

    Initially, the code is written incorrectly, no one divides the properties, for example, the <a href="#">&nbsp;</a> tag into so many parts, in this case there are three of them, the more common style. If you want to set the style, for example, all the <a href="#">&nbsp;</a> tags that you have on the page and that do not have a class, then set it straight in CSS like this:

     a { и тут пишется стиль для тега весь стиль не нужно делить его} a:hover { что будет при наведении } 

    Those. Those links that do not have a class, they will inherit by default the style that is written in the css for the a tag {and the style for the tag is written here}.