Подскажите как засунуть вот стиль ссылки во внешний файл CSS В файле html он выглядит вот так (например): <style type="text/css"> a:link {text-decoration: none; color: blue;} a:visited {color: green; } a:active {text-decoration: none; color: #FF0000; } a:hover {text-decoration: underline; color: yellow; } a.cl2:link {text-decoration: none; color: yellow;} </style> а текст самого файла выглядит (например) вот так: .cl1 { font-family: Verdana, Geneva, sans-serif; background-color: #CCC; color: #00C; font-size: 10px; font-weight: bold; } я уже и вот так пытался (придумывал всякое): A.cl5 link {text-decoration: none; color:#000000}; A.cl5 visited {text-decoration: none; color:#000000}; A.cl5 active {text-decoration: none; color:#F00}; A.cl5 hover {text-decoration: none; color:#F00}; Не получается... Помогите!
а откуда ты взял cl5? почему ты по пути потерял двоеточие? Код (Text): .cl1 { font-family: Verdana, Geneva, sans-serif; background-color: #CCC; color: #00C; font-size: 10px; font-weight: bold; } a:link {text-decoration: none; color: blue;} a:visited {color: green; } a:active {text-decoration: none; color: #FF0000; } a:hover {text-decoration: underline; color: yellow; } a.cl2:link {text-decoration: none; color: yellow;}
Двоеточие не поставил, думал, что оно только внутри скобок {} ставится... И точки с запятой за скобки вынес зачем-то я... Теперь всё работает! igordata, спасибо! a:link {text-decoration: none; color:#000000;} a:visited {text-decoration: none; color:#000000;} a:active {text-decoration: none; color:#F00;} a:hover {text-decoration: none; color:#F00;}