Почему навигационные ссылки берут стиль обычных ссылок?Ссылка css другая проблема с цветовой схемой
Это основное меню навигации:
<!-- Begin menu -->
<div align="center"> <span class="nav">
<a href="index.html" title="Graphic Boulevard - Home pagina">Home</a> |
<a href="autobelettering.html" title="Graphic Boulevard - Autobelettering">Autobelettering</a> |
<a href="reclame.html" title="Graphic Boulevard - Binnen reclame en Buiten reclame">Reclame</a> |
<a href="prints.html" title="Graphic Boulevard - Groot formaat printen">Prints</a> |
<a href="textiel.html" title="Graphic Boulevard - Textiel bedrukken">Textiel</a> |
<a href="ontwerpen.html" title="Graphic Boulevard - Ontwerpen">Ontwerpen</a> |
<a href="aanleveren.html" title="Graphic Boulevard - Digitale bestanden aanleveren">Aanleveren</a> |
<a href="contact.html" title="Graphic Boulevard - Neem contact met ons op.">Contact</a>
</span><br />
</div>
<!-- Einde Menu -->
Это CSS
/* Normal links */
a {
font-size: 12px;
color: #DC342F;
}
a:link {
text-decoration: none;
color: #DC342F;
}
a:visited {
text-decoration: none;
color: #DC342F;
}
a:hover {
text-decoration: underline;
color: #DC342F;
}
a:active {
text-decoration: none;
color: #DC342F;
}
/* navigation links */
a.nav {
text-decoration: none;
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}
a.nav:visited {
text-decoration: none;
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}
a.nav:hover {
text-decoration: none;
color: #DFFFFFF;
font-weight: bold;
font-size: 14px;
}
a.nav:active {
text-decoration: none;
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}
Причина, что они являются «тегами» в пределах диапазона с классом «nav». «a.nav» будет выбирать теги «a», которые сами имеют класс «nav». – Kev
Отлично! Спасибо за Ваш быстрый ответ. – Chris
Без проблем, в любое время. :) – Kev