How can I make a link a different color than the other links according to the current page?

Hello.  I have created a navigation bar.  And I would like to style the links to have the current page link a different color than the other links.  For example, if all of the links have a black background, I would like to have the current page link to have a white background.  The reason that I would like to style them this way is so that the visitor knows what page is being visitied.
I tried different ways but all of them did not show to make any change to the links.  This is what I have so far.  The links work, but all of them have the same color and background.  When on the home page, I would like to have the home page link to have a white background with black letters.  I would appreciate your advice.
<head>
ul {
    list-style-type: none;
    text-align: right;
    padding-top: 10px;
    padding-bottom: 6px;
    padding-right: 10px;
li {
    display: inline;
a:link {
    color: #FFF;
    background-color: #000;
    text-align: center;
    padding-top: 8px;
    padding-right: 8px;
    padding-bottom: 8px;
    padding-left: 7px;
    text-decoration: none;
a:visited {
    color: #FFF;
    background-color: #000;
    text-decoration: none;
a:hover {
    color: #000;
    background-color: #FFF;
    text-decoration: none;   
a:active {
    color: #FFF;
    background-color: #000;
    text-decoration: none;   
a.menu:link {
     color: #000   
     background-color: #FFF;
     text-decoration: none;
</head>
<body>
<div class="navigation">
    <ul>
        <li class="menu"><a href="index.html" target="_self">HOME</a></li>
</body>
Thank you very much.

http://www.itworld.com/development/351097/setting-active-menu-item-based-current-url-jquer y

Similar Messages

  • How can I send email using two different email address that both link back to my one exchange account on my Ipad mini

    How can I send email using two different email address that both link back to my one exchange account on my Ipad mini? 
    On my PC I simply have a master return email address and use a POP for the secondary address.  Both are through the one exchange account without a problem.  I need to be able to do the same on my Ipad.

    Ah, I should have made that clear.  My domain didn't come from google.  It was purchased at and is hosted at dreamhost, but I haven't used their email servers in years - I just route everything through gmail.  I actually have a bunch of domains (with websites).
    Gmail has an option that lets someone with custom domains send (and receive) email through gmail using the custom domain once Google confirms proper ownership of the domain (to prevent spammers and such).  Gmail has a setting for "send email as" which allows gmail to be sent using a custom domain as the sender.  I'm pretty sure Apple's old mobileme had this feature too, but I didn't use it.

  • How can i make buttons in an article to go for other articles in Folios Builders for Ipad?

    I am trying to make buttons in an index, for goingo to other articles, but they never worked here. When a i put Go to Destination, and choose de Indd file, it does not work.
    Can i make a scrollable frame a button either? When i tryed, it did not work, not even the button, and the scrollable frame.
    Please, need some help here.

    WHat is navto? is navegate to...?   How can i do this?
    thanks a lot for your attenttiosn.
    Em 29 jan 2014 às 06:26, Bob Levine <[email protected]> escreveu:
    Re: How can i make buttons in an article to go for other articles in Folios Builders for Ipad?
    created by Bob Levine in Digital Publishing Suite - View the full discussion
    Go to destination is unsupported in DPS. You should be using go to url with a navto: command.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6064623#6064623
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6064623#6064623
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6064623#6064623. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Digital Publishing Suite at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can i make simple program to match colors ?(photos taken by camera)

    how can i make simple program to match colors ?(photos taken by camera)

    Hi khaledyr,
    use a "random number" and compare for ">0.5" to get a (1 or 0) signal
    What exactly are you searching for?
    - Hints for choosing hardware?
    - How to output voltage or relais signals?
    - Help on using DAQ(mx)?
    - Help on generating (boolean) waveforms?
    Message Edited by GerdW on 04-16-2010 08:15 AM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • When I have many tabs open, & I am viewing the 1st one in the row of tabs, how can I make ctrl+T open tab next to it instead of down at the end of all the tabs?

    If, for example, I have 50 tabs open, and I happen to be working on the very first tab out of the long row of tabs (tab #1 out of 50 total tabs)....if I suddenly need a new tab next to the one I'm on so that I can do something else related to what I am doing on my current tab's website, pushing ctrl+t opens up the new tab clear down at the very end of the long row of tabs (i.e., the new tab would be tab #51). How can I make the new tab open up right beside the one I'm working on at the moment?

    You would need an extension to achieve this
    You can look at this extension:
    *Tab Utilities Lite: https://addons.mozilla.org/firefox/addon/tab-utilities-lite/

  • How can i make a graph y is unmber pasing from UDP port,x is the time stamp.and in the same time this graph can display several numbers to compare.

    how can i make a graph
    y is number(the blue wire)pasing from UDP port,
    x is the time stamp.
    plus in the same time this graph can display several differenr numbers to compare.

  • How can I make my mac mini run faster? Everytime i try to download a internet page I get the circle with colors. It takes too long. Help

    How can I make my mac mini run faster. Loading internet pages is too slow

    i have the same problem...it can take 10-15 seconds to just switch tabs..i think i will solve it by taking mine back

  • How do you make a SpryMenuBar a different color for each page?

    Hey everyone. I'm new to web design and dreamweaver is definitly kicking my butt. Anyway, I'm trying to create a simple website for a foundation and I want to make each page have a different color Sprymenubar to match the color theme of the different pages. The site will only have about 6 color themes max so this shouldn't be a huge undertaking. The trouble I'm having is I have created the home page (the color green) and right now I'm working on the second page (the color blue). When I added a new sprymenubar and changed the CSS Rule to make the color of the menu blue and the hover color light blue it then changes the color of the menu on the home page from Green to Blue. How annoying! I even tried starting from scratch and inserting another horizontal sprymenubar but I can't seem to make another horizontal sprymenubar with a whole new set of rules independent from the first one. What can I do? Do I have to make an editable region or am I just not clicking a certain button to make the new menubar independent from the first one?
    Examples
    First this
    Then this
    And then this happens 
    Let me know!!

    Ok I found a similar question on this forum that was answered and helped. If anyone comes across this wondering the same thing, copy and paste your SpryMenuBarHorizontal.css file and rename the copy to something like "(Title_Of_Page)SpryMenuBarHorizontal.css" and then replace "SpryMenuBarHorizontal.css" in your code to <link href="../SpryAssets/(Title_Of_Page)SpryMenuBarHorizontal.css" and then you are good to go.

  • How can I make addons available for enterprise users by an central service and forbid the installation from any other sources

    in the company I´m working for it´s not possible to install add-ons by the Users . That´s what I´m going to change.
    We use Firefox ESR 17 and Window 7.
    I want to make add-ons available for everybody by integrating an internal central service. That is possible by customizing the "extension.webservice.discoverURL" to the server I´m talking about. The Problem is that nobody should be able to install add-ons from any other source, for example addons.mozilla.org, local media,...
    Do you have an idea, how this problem can be solved?
    Maybe there is a possibility by using the lockPref "xpiinstall.enabled false" in conjunction with a whitelist defining my Server?

    Does any of this or similar blogs by the same author help
    *http://mike.kaply.com/2012/07/03/customizing-firefox-blocking-add-ons/
    Although with many hacks there could be some sort of workaround that advanced users may employ when attempting to circumvent the measures, such as the ability to use Firefox in safe-mode and then install add-ons, or even run a browser from a memory stick.
    You may well get a better answer on some other forum. This mozillazine forum deals with some coding issues, not sure but they may consider your sort of question on topic.
    * http://forums.mozillazine.org/viewforum.php?f=25

  • How can I make a control inside a loop in a subVI change value when the calling VI's control changes?

    Hi.
    I think this is a pretty basic LV question, but I have not been able to find a good solution.
    I am attaching VIs that show the problem I am having, but obviously, the real application is a lot complicated, which forces me to try to do it this way.
    The issue is: I have a subVI with a Boolean control inside a loop.  When the control is true I want some action to take place.  When the subVI is run on its own, it works fine, acting properly when I set the boolean control to true via the LV FPGA interface from the host.  However, when I use it as a subVI, in which the top-level VI calls several instances of the subVI, I have the Boolean controls in the top level VI.  What is happening is that the false Boolean value with which the top-level VI starts is passed into the subVIs, and not updated, even though the control is inside the loop.
    Can any one suggest a good solution?
    Thanks,
    AlejandroZ
    Attachments:
    CallingVI.vi ‏7 KB
    subVI.vi ‏8 KB

    Hi.
    I know the example I posted might seem silly, but it was just to illustrate the problem I am having.  In reality this is the application:
    I have some LV FPGA code which uses a few FPGA IO to implement a serial link to communicate with a device.  Most of the time we are getting data from the device, so the serial link is used to send a read command, read in the data and put it into a FIFO.  However, I also wanted the VI to support sending data to the device, so I added an array control to put the data you want to send, and a boolean control to tell it you want to send it.
    Since sending and receiving data are done using the same FPGA IO, they cannot be independent operations, because they would garble each other. Therefore, in the subVI I have a loop in which I first read data if there is any to read, then check the boolean write control to see if there is data to write.
    As I mentioned, this works perfectly for talking to a single device.  However, we run into the issue of this topic when trying to replicate this for several devices.
    One easy solution is to not have the loop in the subVI, and have it in the calling VI (I am favoring this simple solution right now).  The only reason why I have not done this yet, is that the subVI has more than one loop, so I am going to have to create several subVIs.  I just posted to see if there was an even simpler solution...
    There have been some other possibly good solutions proposed here, though I am not sure if they work in LV FPGA.
    Thanks for all your responses.
    AlejandroZ

  • How can I make a dropdown box populate with values from other fields?

    I am trying to create a NCAA bracket where they select teams from a dropdown menu. For example, they choose which teams win in game 1 and 2 through a dropdown box. The winner of games 1 and 2 then play each other, so how can I populate the dropbox with their selections for game 1 and 2?
    Game 1 winner --
         (game 9)        |--- Game 9 winner
    Game 2 winner --
    Game 9 winner needs to populate with their selections from game 1 winner and game 2 winner.

    I would look at using the setItems Acrobat JavaScript method.
    Have you considered using  a Mouse Up action for "Game 1" and "Game 2" to fill "Game 9"

  • How can I output audio to a different output than video?

    I am using STP to do some ADR work and I am having the following issue:
    Whenever I play back my material which has a 720p video track, both the audio and the video go out of my Kona LHe. I want to be able to separate the audio to go to a different hardware output from the video. Is there a way to do this?

    Hi. I'm running STP 2.0.2 with 5.1 audio through an RME Fireface 400 and sending the video via HDMI from a Black Magic Intensity card to an LCD TV. If I can refer you to page 318 of the manual it states that "When you use a video output device that supports both video and audio output, Soundtrack Pro automatically routes your audio output to this device to provide the best possible synchronization of the audio and video". Therefore not a bug, but a default built into STP.
    I'm sure they are correct, but cannot see why this was not added as a preference option. My solution has been to run the LCD TV as a second monitor through it's PC input, which works fine but does not give HD image. I have tried many options (All combos of available audio preferences for system and STP) without success. My next plan is to cut the HDMI cable and disable the audio if possible, but this may not work due to the nature of HDMI (System may believe the HDMI output is an audio capable video device even though audio path has been severed).

  • How can I make my Music playing on more than One AirPlay device ?

    How can i Play my IPhone Music on more AirPlay devices than One ?
    When i double Click the home button to come to the AirPlay options it's only avaiable to select One of the airPlay devices, the device chosen before turns off.
    So can anybody Tell me how to do that, or is it impossible to do that ?
    Sincerely
    JLK

    Not possible to do so at this time.

  • HT2729 How can I maintain folder structure when copying more than 1 folder of videos to the iphone?

    Spent hours trying to figure this out - no luck!
    I have a video tutorial course that I would like to be able to view on my iPhone, the only problem is that it is broken down into 6 folders - 1 for each subject.
    And if I add the whole course to be synced via iTunes it gets copied ok. But it loses the original folder names that the files are stored in on my PC
    ALL the videos files copied to the iPhone are bunched togeather in the Video app and it takes forever to figure out which one comes next.
    How can I maintain the original folder names/structure that the files are stored in on my PC on the iPhone?

    To follow how I solved this it might be good to know what I started with:
    I have a main folder which I called 'Music Theory' and  6 sub-folders: 101, 102, 103, ....etc.
    with up to 20 or so videos in each one.
    Note: Only import one sub-folder at a time into iTunes and then do all the following actions BEFORE importing the next sub-folder:
    Add only 1 sub-folder to the 'Films' section in iTunes (either drag and drop or use the File - Add Folder to Library).
    Select all the imported videos (hold down the Ctrl + A keys on the keyboard simultainiously).
    Right click and select 'Get Info'
    Then you may get a pop-up with this text but just click the 'Yes' button:
    You should now have the 'Multiple Item Information' window showing. Click on the 'Options' tab and edit as below:
    Tick: 'Media Kind'               and from the Drop Down Box choose:  'TV Programme'
    Tick: 'Part of a Compilation'   and from the Drop Down Box choose: 'Yes'
    Tick: 'Remember Position'        and from the Drop Down Box choose: 'Yes'
    Now click on the 'Video' Tab of the 'Multiple Item Information' window and edit:
    The 'Programme' text field (I entered Music Theory) This will be the main heading for all the folders that I want to add to this series.
    The 'Series' text field (I entered 101 for the first sub-folder)
    Now click the 'OK' button.
    iTunes now starts processing all you have done and moves the vildeos to the 'TV Progammes' section.
    The first part is now done!
    Now you should repeat all the actions you have done from the start on each sub-folder you want to include in this Video collection, then when you've done that you can upload the lot to your device (iPhone in my case) with this last step:
    All you need to do now is select your device under 'Devices' in the left hand menu and tick the 'Sync TV Progammes' box in the 'TV Progammes' section and select the series that you want include in the right hand area. And then click 'Apply' and now your done!!!    :-)

Maybe you are looking for