<style>
2 отговора
64 прегледа
<style>
Абе хора, кажете как да дефинирам различни класове за link-овете на страницата ?! Не искам всички да са еднакви, а нямам намерение да пиша за всеки отделно ... т.е. искам да си направя няколко класа. Например така :
<a href="###" class=red>
<a href="###" class=underline>
<a href="###" class=.....>
само че как става това за link-овете ???
<a href="###" class=red>
<a href="###" class=underline>
<a href="###" class=.....>
само че как става това за link-овете ???
Отг: <style>
Napishi si .css fil ot tipa:
A {
text-decoration : none;
}
A.red {
color : Red;
}
A.underline {
text-decoration : underline;
}
i sled tova koda v HTML ti e:
<p><a href="redlink" class="red">Red link</a></p>
<p><a href="underline" class="underline">Underlined link</a></p>
A {
text-decoration : none;
}
A.red {
color : Red;
}
A.underline {
text-decoration : underline;
}
i sled tova koda v HTML ti e:
<p><a href="redlink" class="red">Red link</a></p>
<p><a href="underline" class="underline">Underlined link</a></p>
Отг: <style>
syotvetno
a:hover.classname {color:yellow} ;)
btw v <a href="" class=""> kavichkite ne sa neobhodimi :)
a:hover.classname {color:yellow} ;)
btw v <a href="" class=""> kavichkite ne sa neobhodimi :)