Mam 2 pliki:
menu.css
body { color: #A14A00; background-color: #D9A300; } a:link { color: #0000cc; text-decoration: none; } a:visited { color: #0000cc; text-decoration: none; } a:hover { color: #8E2323; text-decoration: underline; } .user { font-family: "Times New Roman", Times, sans-serif; background-color: #376203; color: #FFFFFF; text-align: center; font-size: 12pt; } .menu { font-family: "Times New Roman", Times, sans-serif; background-color: #2E6999; color: #FFFFFF; text-align: center; font-size: 10pt; } .wiz { color: #A14A00; background-color: #E3AE00; } .wiz1 {background-color: #E3AE00; color: #2100A0; font-size: 12pt; } .wiz2 {background-color: #E3AE00; color: #87009A; font-size: 12pt; }
roboczy.css
body { color: #3232CD; background-color: #DBDBDB; } a:link { color: #0000cc; text-decoration: none; } a:visited { color: #0000cc; text-decoration: none; } a:hover { color: #8E2323; text-decoration: underline; } h2 { font-family: "Times New Roman", Times, sans-serif; color: #3232CD; text-align: center; font-size: 20pt; } td.tdbkground {background-color: #CFB53B; color: #238E23; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: left; } .reg {background-color: #CFB53B; color: #FF24OO; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12pt; text-align: center; } .error {background-color: #CFB53B; color: #ff0033; font-family: Verdana, "Times New Roman", Times, sans-serif; font-size: 12pt; text-align: center; } .zwykly { font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 10pt; text-align: left; }
Część odpowiedzialna za niebieskie linki bez podkreślenia i brązowe z podkreśleniem po najechaniu myszką, w obu plikach są takie same.
Problem w tym, że jak korzystam z menu.css to linki są takie jak chcę, a jak korzystam z roboczy.css to linki są standardowe.
Udało mi się ten problem rozwiązać, zamieniając kolor tła w body na taki z menu.css. Ale znowu jest coś nie tak.
Jeśli widzicie gdzieś błąd to prosze o pomoc
