A
A
Alexey selftrips.ru2018-02-16 01:49:19
css
Alexey selftrips.ru, 2018-02-16 01:49:19

How to apply other properties for some links?

There is a group of links (not all!)

<a href="http...1">text1</a>
<a href="http...2">text2</a>

How can they be done without underlining?
those. for example wrap in a class
<div class="class1">
<a href="http...1">text1</a>
<a href="http...2">text2</a>
</div>

How to set a property in class1 text-decoration: none;
So that links are not underlined
, this does NOT work
<style>
   .class1 a {
    text-decoration: none!important;
   }
</style>

so links are not underlined

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2018-02-16
@Stalker_RED

Actually works , and even without important.
Most likely you have some other rules with a higher priority . In the inspector, you can see all the rules that are applied to the element.
OGySwkE.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question