Jump to content

How do i set Background to selected link ?


Pradeep_Chinna

Recommended Posts

firstly, please go though this image (img.jpg). so that you can understand easily.

 

how to highlight the selected link in menu bar. like, if we select one link then it should get different color background. and Rest of links should get default color. i.e., link represents your current page in particular website

I hope you understood.

 

HELP me...

 

post-164592-0-43139000-1377412034_thumb.jpg

PHP could be utilized to determine which page is being viewed. If the page matches one of the links in the menu bar, a class attribute could be added dynamically (with PHP) so the link is highlighted.

 

Perhaps something here will help:

https://www.google.com/search?q=dynamically+highlight+links+in+website+navigation+with+php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.