html - setting the focus on the nav bar -


does know css , html code can use set focus on nav bar. in other words want page tab such home page highlighted when user on home page. if user go's contact page contact page nav bar tab should highlighted.

you can in html/ccs providing pages have classes or id's. using home example:

html

<body class="home">...

<li class="home>...</li><li class="other>...</li>

css

.home li.home { ... }

.other li.other { ... }

this won't set :focus give visual effect desire.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -