Jump to content
php.lv forumi

Recommended Posts

Posted

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?

Posted

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 :)

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...