Change color of List link

Hi,
I'm trying to change the color of the links in one of my Lists. Can somebody please tell me how to do this? I'm not sure where to put it or what the syntax is.
Thanks,
Nora

Take a look at:
Change color of row links
Basically, create a class for your links and change the attributes using the :link,:visited,and :hover pseudo-classes. Even better, apply a class to the UL element, such as "myList" then add the following to your css:
ul.myList li a:link,ul.myList li a:visited{color:#00ff00;text-decoration:none;}
ul.myList li a:link,ul.myList li a:hover{color:#ff0000;text-decoration:underline;}
That way you don't have to repeat the 'class=".." ' for every link in your li, thus reducing the size of the page.
Thanks,
Tyler

Similar Messages

  • Changing color on visited links?

    How can Safari options be changed to show visited links in a different color (as is the case in Internet explorer and other browsers.
    i.e if you have already visited a link, when you return to the main page, the browser shows you by different colors which links you have viewed and which ones are new (for thew current session)
    thanks

    I know you said Safari Enhancer will change the "read" links color but not on certain pages that have their own style sheets. I am using 10.4 with the latest version of Enhancer with Yahoo set as my home page. This page has about 100 links to news, sports, business etc. Even though I set Enhancer to change the colors it will not do so. Nor will my Google News Page. It does work with Google Search page but I want it to work on my Yahoo home page since that is where I read all of my News etc. Can you recommend other software that will work? Is Apple going to address this issue?
    Power Mac G4 1.2   Mac OS X (10.4.4)   Safari Enhancer 3.1

  • Change color on visited links

    Firefox 35.0.01
    Intel Core i7-3770 CPU @ 3.40GHz, 32.0GB RAM, NVIDIA GeForce GTX 580
    I recently did a "refresh" (?) on Firefox and my visited links are no longer changing color. I've gone to Options - Content - Fonts & Colors - Colors... and the Link Colors option looks okay but when I click on a link it doesn't change color to indicate that it's been visited.

    Make sure that you do not run Firefox in permanent Private Browsing mode (Never remember history).
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history"
    *Deselect: [ ] "Always use Private Browsing mode"
    You can also check the layout.css.visited_links_enabled pref on the <b>about:config</b> page and make sure it has the default value.
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config

  • Change color of visited link

    Hello,
    I would like to change the color of visited column link in my report. After user clicks on it, it opens some info region, but user wants to know what info was already accessed after this region is closed, so link should stay colored.
    I

    Here is my solution.
    On click I store the record key in page item, say P100_KEYS, and append keys (with ; separator) each time the link is clicked in any record. Then DECODE(SUBSTR(:P100_KEYS,INSTR(:P100_KEYS,REC_KEY)-1,LENGTH(REC_KEY)+2),';'||TO_CHAR(REC_KEY)||';','v','') in the report sql analyzes the keys, and check marks relevant records when page resubmitted. Check mark could be colored, but because link is also a gif image, it looks well as is.
    Thanks for your help and suggestions.

  • How to change color of list box highlighting in Acrobat 9 Pro?

    When you create a list box in Acrobat 9 Pro you select the default value.  That default value displays on the form in a highlighted color.  Does anyone know how to change the color of the highlight or ideally make it no color?  Thanks.

    When you create a list box in Acrobat 9 Pro you select the default value.  That default value displays on the form in a highlighted color.  Does anyone know how to change the color of the highlight or ideally make it no color?  Thanks.

  • How to change Color of IMAGE Links

    Page properties is the only place I can find to change the
    color of LINKS. It works for text, but not for the border it
    automatically puts around a linked image. It's purple! Can't I make
    it white to blend in with the background? I have already changed
    all the link colors in the page properties to white and the link
    around the image is still purple! Is anyone familiar with this
    phenomenon and how to get around it?
    (BTW - in case you're wondering, there is no border
    specified in the properties or the css style)

    Of course, your method will not validate, while Osgoods will.
    And his will
    work, too, assuming it's properly implemented.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "EviePhillips" <[email protected]> wrote in
    message
    news:fpfp24$kjr$[email protected]..
    > Osgood:
    >
    > Thank you for responding. I did as you suggested and
    alas, it did not
    > work.
    > But you got me thinking about HTML code and so I went to
    the HTML Tutorial
    > website. I found some Image Border jargon. I entered
    Border=0 in the
    > Image
    > Source code and it worked. No more Purple link border.
    >
    > Thank you for turning on the light! I appreciate your
    help!
    >
    > Evie
    >

  • Change color "view cart" link

    Hi i'm looking for a way to change the color for the "view cart" link in this module: {module_shoppingcartsummary,vertical,}
    Any suggestions?
    Thanx,
    Frank

    Ahh, so was visited link. Hard to tell when your not looking at it to offer help
    An anchor you should always look to do the following...
    There are your 3 main states - link, visited, hover.
    You do not need to reference :link because browsers know the html element is a link but you can be specific if you wish.
    So in terms of your css you have
    a,
    a:visited
    a:hover
    Often you will want the visited link to be the same as your main so a css would normally form..
    a, a:visited { color:#333; }
    a:hover      { color:#cc0000; }
    For example

  • How to change color of dotted link box when clicked

    I've been trying to get the dotted red box around a link
    image of mine to go away. It shows up when you click on the link
    (yes, even with border set to none in css).
    But then I realized this only happens when using Firefox.
    With Safari, when I click on the link, there's no outline around
    the image.
    To see an example, go to www.jquery.com and click on the logo
    at the top left of the screen. If you're using Firefox there should
    be a white dotted line around the image - and with Safari, none.
    Ok, well then, if there has to be that outline in Firefox,
    I'm wondering how to make it white? White is so much more pleasant
    that red and purple.
    Thanks!

    I solved it myself found the "Format" under the Link tab

  • Visited links don't change color

    Something I've done in the past 48 hours has caused Safari to not change color for visited links (this is still working fine on FireFox). I tried creating another user account and it works fine with that...just not with my account.
    I've done all the typical things...repaired permissions, repaired disk, completely reset Safari to default and made sure all caches, etc. were cleaned out...both manually and with Onyx, reset associated .plist files.....nothing helps.
    The only thing I've added to the machine is WebKit, but I tried uninstalling that as well, cleaning out all its associated files...but that didn't work. Returning to a Google search page still shows all links as blue.
    Any ideas? I really don't want to do a complete reinstall...I just spend a week getting this new MacBook the way I want it and I have a lot of apps on it.
    Thanks!
    Larry

    Thanks, Dimaxum...I've already read this thread, and every other thread about the subject on the internet. I am totally convinced this is a Safari issue because the links have always changed color for me using FireFox...always.
    I'm sure there could be other situations where something else caused this problem and it was apparent on both browsers, but not in my case.
    On my wife's Mac this is not a problem on Safari...it's something in my User folder causing it. For now I've just made FireFox the default browser and I'll keep searching. Or the next time I wipe my hard drive and rebuild everything (I do this every six months or so...old Windows habit that isn't necessary) I'm sure it will work fine then.
    I was at the Apple store yesterday and tried several Macs there...they all worked fine. This is just somethiing on my machine.
    Thanks for your help.
    Larry

  • Change color on a row in list

    Hi,
    I want to change color on my lists rows with buttons (look att the picture) i want to be abel to choose more then 1 item and change the color on all that is marked and i want to do this with javascript :)

    Hi,
    JSLink would be a more recommended way in SharePoint 2013 for your requirement.
    The links below would be helpful for you to get a quick start:
    http://www.rbradbrook.co.uk/blog/2013/04/14/introduction-to-client-side-rendering-in-sharepoint-2013/
    http://www.learningsharepoint.com/2013/04/13/sharepoint-2013-js-link-tutorial/
    http://www.martinhatch.com/2013/08/jslink-and-display-templates-part-5-creating-custom-list-views.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Visited download links don't change color (but do in FireFox)

    I have a mass amount of files to download listed on a Web page.  When I click the link, the file downloads, but the link on my downloads page never changes colors to note that the link has been visited. 
    Is this a bug and is there a work around for my HTML page?  Currently I'm using javascript to change link colors.

    Thanks for the input.  I tried that, and it didn't work.  It appears to work for everything else - just not download links. 
    Here's an example of my links:
    <a href="http://cdn.setxvideo.com/001.MTS" target="new">001.MTS</a>
    in my header is
    <style type="text/css">
    a:link {background-color:#B2FF99;}    /* unvisited link */
    a:visited {
    background-color:#FFFF85;} /* visited link */
    a:hover {background-color:#FF704D;}   /* mouse over link */
    a:active {background-color:#FF704D;}  /* selected link */
    </style>
    Again, they work correctly in FireFox but not Safari.

  • How to change the color of Menu links in obiee

    Does anyone knows how to change the colors of Menu links in obiee. With menu I mean the menu links default right top (Search, homepage, Catalogus, Dashboards, new, Open). This should be set in skin and style files, not? I searched a lot. I could not find It. It is now Oracle blue, we want to change this.
    obiee 11.1.1.5.
    Thanks

    You have to customize portal banner and portal content CSS files as needed in OBIEE server.
    below links will guide u but will will not tell you exactly but your req can be done by customizing portal content and portal banner CSS files. try to identify the exact code using firebug in mozilla.
    http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/
    Customization of login page, banner,logo in obiee11g
    Thanks
    Jay.

  • How to change color of selected label from list of labels?

    My Problem is that I have a list of labels. RowHeaderRenderer is a row header renderer for Jtable which is rendering list items and (labels).getListTableHeader() is a method to get the list. When we click on the label this code is executed:
    getListTableHeader().addMouseListener(new MouseAdapter()
    public void mouseReleased(MouseEvent e)
    if (e.getClickCount() >= 1)
    int index = getListTableHeader().locationToIndex(e.getPoint());
    try
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    AcknowledgeEvent ackEvent = new AcknowledgeEvent(
    this, (ae_AlertEventInfo)theAlerts.values().toArray()[index]);
    fireAcknowledgeEvent(ackEvent);
    ((HeaderListModel)listModel).setElementAt(ACK, index);
    catch(Exception ex) {;}
    Upon mouse click color of the label should be changed. For some period of time ie. Upto completion of fireAcknowledgeEvent(ackEvent);
    This statement is calling this method:
    public void handleAcknowledgeEvent(final AcknowledgeEvent event)
    boolean ackOk = false;
    int seqId = ((ae_AlertEventInfo)event.getAlertInfo()).sequenceId;
    if (((ae_AlertEventInfo)event.getAlertInfo()).ackRequiredFlag)
    try
    // perform call to inform server about acknowledgement.
    ackOk = serviceAdapter.acknowledge(seqId,
    theLogicalPosition, theUserName);
    catch(AdapterException aex)
    Log.error(getClass(), "handleAcknowledgeEvent()",
    "Error while calling serviceAdapter.acknowledge()", aex);
    ExceptionHandler.handleException(aex);
    else
    // Acknowledge not required...
    ackOk = true;
    //theQueue.buttonAcknowledge.setEnabled(false);
    final AlertEventQueue myQueue = theQueue;
    if (ackOk)
    Object popupObj = null;
    synchronized (mutex)
    if( hasBeenDismissed ) { return; }
    // mark alert event as acknowledged (simply reset ack req flag)
    ae_AlertEventInfo info;
    Iterator i = theAlerts.values().iterator();
    while (i.hasNext())
    info = (ae_AlertEventInfo) i.next();
    if (info.sequenceId == seqId)
    // even if ack wasn't required, doesn't hurt to set it
    // to false again. But it is important to prevent the
    // audible from playing again.
    info.ackRequiredFlag = false;
    info.alreadyPlayed = true;
    // internally uses the vector index so
    // process the queue acknowledge update within
    // the synchronize block.
    final ae_AlertEventInfo myAlertEventInfo = event.getAlertInfo();
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.acknowledge(myAlertEventInfo);
    myQueue.updateAcknowledgeButtonState();
    // here we should stop playing sound
    // if it is playing for this alert.
    int seqId1;
    if (theTonePlayer != null)
    seqId1 = theTonePlayer.getSequenceId();
    if (seqId1 == seqId)
    if (! theTonePlayer.isStopped())
    theTonePlayer.stopPlaying();
    theTonePlayer = null;
    // get reference to popup to be dismissed...
    // The dismiss must take place outside of
    // the mutex... otherwise threads potentially
    // hang (user hits "ok" and is waiting for the
    // mutex which is currently held by processing
    // for a "move to summary" transition message.
    // if the "dismiss" call in the transition
    // message were done within the mutex, it might
    // hang on the dispose method because the popup
    // is waiting for the mutex...
    // So call popup.dismiss() outside the mutex
    // in all cases.
    if(event.getSource() instanceof AlertEventPopup)
    popupObj = (AlertEventPopup)event.getSource();
    else
    popupObj = thePopups.get(event.getAlertInfo());
    thePopups.remove(event.getAlertInfo());
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    // search vector elements to determine icon color in main frame
    String color = getColor();
    fireUpdateEvent(new UpdateEvent(this, blinking, color));
    // Call dismiss outside of the mutex.
    if (popupObj !=null)
    if(popupObj instanceof AlertEventPopup)
    ((AlertEventPopup)popupObj).setModal(false);
    ((AlertEventPopup)popupObj).setVisible(false); // xyzzy
    ((AlertEventPopup)popupObj).dismiss();
    else
    // update feedback... ack failed
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    myQueue.setInformationMessage("Acknowledge failed to reach server... try again");
    return;
    Code for RowHeaderRenderer is:
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
    JTable theTable = null;
    ImageIcon image = null;
    RowHeaderRenderer(JTable table)
    image = new ImageIcon(AlertEventQueue.class.getResource("images" + "/" + "alert.gif"));
    theTable = table;
    JTableHeader header = table.getTableHeader();
    setOpaque(true);
    setHorizontalAlignment(LEFT);
    setForeground(header.getForeground());
    setBackground(header.getBackground());
    setFont(header.getFont());
    public Component getListCellRendererComponent( JList list, Object value,
    int index, boolean isSelected, boolean cellHasFocus)
    int level = 0;
    try
    level = Integer.parseInt(value.toString());
    catch(Exception e)
    level = 0;
    if (((ae_AlertEventInfo)theAlerts.values().toArray()[index]).ackRequiredFlag)
    setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    this.setHorizontalAlignment(JLabel.CENTER);
    this.setVerticalAlignment(JLabel.CENTER);
    setIcon(image);
    else
    setBorder(BorderFactory.createLineBorder(Color.gray));
    setText("");
    setIcon(null);
    return this;
    I tried but when i am clicking a particular label, the color of all labels in the List is being changed. So can you please assist me in changing color of only the label that is selected and the color must disappear after completion of Upto completion of fireAcknowledgeEvent(ackEvent);

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • How to change background color in List of Values (LOV) ?

    Hiya
    In Forms 10g, the background color in list of values (LOV) is White whereas it was grey in Form 6i. Also, the position of 3 buttons i.e. Find, OK and Cancel on LOV is different than what it used to be in Forms 6i.
    Is it possible to change the background color and the position of buttons of LOV in Forms 10g ?
    Cheers
    Mayur

    I would like to share the outcome of this issue.
    I had posted this same issue on Metalink yesterday. They (Metalink guys) have confirmed that its an bug in Oracle 10g DS R2 and it would be fixed in subsequent releases.
    Following is an official response from Metalink:
    This issue has been addressed to Oracle Development to be investigated/fixed in the published Bug:
    Bug 1559776 <BACKGROUND COLOR SETTING FOR LOV OBJECT DOES NOT WORK ON WEB>
    Cheers
    Mayur

  • Visited links not changing color on iPad Safari or other browsers

    Hi,
    On my iPad, when I visite a site via an hyperlink and then go back to the initial page, the color of that link is not changing anymore like it is on my MacBook. For example, in Google search, the visited links don't turn violet and remains blue instead. This is the case in Google search, Yahoo but not with Bing. The problem occurs on all my iPad web browsers (Safari, Atomic Web...).
    Is it a bug or a config thing that I can fix myself ? Anybody have any idea or did find a solution to this same problem ?
    Thank you,
    Daniel

    Well, I'm a mixed bag. After wasting time and missing the point earlier, thinking that this was about the Google app, today I finally suss to the fact that the discussion's a tually about in fhe browser ...
    Anyway, I take a look and, sure enough, the first one I try does pop into a violet color when returning to the results page. I thought it distinct enough to easily notice, and couldn't remember seeing it before (use the app most of the time).
    Unfortunately, that was rthe one and only time I saw that happen over the next ten minutes of running searches on multiple topics. All subsequent cycles showed the exacrt same shade of blue on return, and this includes tests run in the middle of and following such steps as clearing the app (cache, cookies history), force quitting the app, and restarting the iPad.
    Nothing made any difference. That first time was the one and only time, so far, that I saw the color change.
    Also tried a Reset. No change. I guess if it's really supposed to work then a Restore might do it but .... I think not.
    Message was edited by: Michael Morgan1

Maybe you are looking for