renathy Posted April 3, 2009 Report Share Posted April 3, 2009 Nesaprotu īsti kā es varu uzlikt HTML + CSS, lai tas links, uz kura es noklikšķinu (menu daļā) ir citāds. Man šobrīd ir: #vertmenu ul li a:hover, #vertmenu ul li a:active { color: #000000; background-color: #eeeeee; } Kādam jāizskatās HTML kodam, lai šis iedarbotos? Quote Link to comment Share on other sites More sharing options...
Delfins Posted April 3, 2009 Report Share Posted April 3, 2009 tādam arī jābūt <div id="vertmenu"><ul><li><a ..></ ..... > Quote Link to comment Share on other sites More sharing options...
renathy Posted April 4, 2009 Author Report Share Posted April 4, 2009 Bet nu active nozīmē, ka viņš šobrīd ir aktīvs? Kā tieši šo ierakstīts? <a class="active" ???? Quote Link to comment Share on other sites More sharing options...
Val Posted April 4, 2009 Report Share Posted April 4, 2009 jā, labrīt. Quote Link to comment Share on other sites More sharing options...
Delfins Posted April 4, 2009 Report Share Posted April 4, 2009 skatoties ko tu saprot ar aktīvs... ja tu domā, ka CSS spēj nolasīt no URL un "izpīpēt", kuru "hailaitot", tad nekas tāds nav - pašam jāraksta kods, kas pieliks vajadzīgo stilu s.main_menu_selected :) Quote Link to comment Share on other sites More sharing options...
renathy Posted April 4, 2009 Author Report Share Posted April 4, 2009 Val: Labrīt. Tad tā bija pareizi? Quote Link to comment Share on other sites More sharing options...
Val Posted April 4, 2009 Report Share Posted April 4, 2009 Ja biji domājis, kā linkam pielikt "active" stila klasi, tad - Jā. Kad kuram linkam tā jāpievieno, atkarīgs no tevis un tava uzrakstītā koda. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.