-
-
Save princed/3137297 to your computer and use it in GitHub Desktop.
сделать псевдоссылку с точечным подчеркивание
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
сделать псевдоссылку с точечным подчеркивание | |
которое было бы на одном уровне с | |
подчеркиванием ссылки | |
http://clck.ru/d/fLXRAghf14C1t | |
*/ | |
a.pseudo | |
{ | |
text-decoration: none; | |
display: inline-block; | |
position: relative; | |
top: 0.15em; | |
height: 1em; | |
} | |
a.pseudo:after | |
{ | |
content: ""; | |
display: inline-block; | |
position: relative; | |
width: 100%; | |
top: -1em; | |
border-bottom: 1px dotted; | |
} | |
a.pseudo:hover | |
{ | |
color: red; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p><a href="/">обычная ссылка</a> просто текст <a class="pseudo" href="/">ссылка</a> еще текст</p> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment