vita: hirachie

Beitrag lesen

hi's,

wenn ich in meinen externen css sowas stehen habe:

#menu1 a.,a:link,a:active1,a:visited{
  font-family:monospace;helvetica,Arial;
  font-size:12px;
  color:#EEEEEE;
  font-weight:500;
  text-decoration:none;
  background-color:#6699CC;
  line-height:20px;padding:5px;
  }

#menu1 a .pfeil{color:#6699CC;}

#menu1 a:hover,a:hover.pfeil{
 font-family:monospace;helvetica,Arial;
 color:#6699CC;
 font-weight:500;
 background-color:#EEEEEE;
 line-height:20px;padding:5px;

dann muss ich das folgerichtig in meine html datei über id=menu1 einbauen..

problem ist jetzt aber, dass ich mir das id=irgendwas genausogut sparen könnte, weil diese formatierung immer als oberstes Gebot gehandelt wird.
Habe ich also keine id=.. geschrieben, wird es angezeigt. will ich diese formatierung nicht angezeigt bekommen muss ich mit neuer .xx drüberformatieren.

Das ist aber doch eigentlich nicht richtif so?
Was also habeich falsch verstanden?

grisse