Link Colors

Last post 01-04-2011, 10:36 AM by Eric. 3 replies.
Sort Posts: Previous Next
  •  12-30-2010, 8:50 AM 65557

    Link Colors

    When setting links in the Editor, what is the best way to control the color of the link at mouse off, mouse over and visited? Upon creating a series of links, I have found the color of each link (font) seems to vary for no obvious reason between blue (normal) and purple. Actually, I would like to establish my own colors.  If the answer is CSS, how do I point to - and use - a CSS file?
  •  12-31-2010, 7:32 PM 65560 in reply to 65557

    Re: Link Colors

    Hi HarryV,
     
    When setting links in the Editor, what is the best way to control the color of the link at mouse off, mouse over and visited? Upon creating a series of links, I have found the color of each link (font) seems to vary for no obvious reason between blue (normal) and purple.
     
    Question1,
     
     
     
    Actually, I would like to establish my own colors.  If the answer is CSS, how do I point to - and use - a CSS file?
     
    Question2,
     
    Please refer to http://www.cutesoft.net/doc/html/13c920bf-2da6-5f48-268a-6c3e5eba0726.htm
     
    Regards,
     
    ken
     
     
  •  01-04-2011, 6:11 AM 65587 in reply to 65560

    Re: Link Colors

    Thanks for the reply, Ken. I know how to set the color attributes using CSS. What I am still having a problem with is properly pointing to my CSS file. I added the following key/value to the CE:Editor markup -
    EditorWysiwygModeCss="JaxAdmin.css" (my CSS file in the same folder) but it does not work. Do I need to add something else? I noticed a C# code reference in the link you pointed to as
    public string EditorWysiwygModeCss { get; set; }

    If I need to include that code, where do I do that?
  •  01-04-2011, 10:36 AM 65588 in reply to 65587

    Re: Link Colors

    Dear HarryV,
     
    Please follow steps:
    1. Save the following code to test.aspx
    <%@ Page Language="C#"%>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>

    <html>
        <head>
      <title>ASP and ASP.NET WYSIWYG Editor - EditorWysiwygModeCss</title>
     </head>
     <body>
            <form id="Form1" runat="server">   
        <CE:Editor id="Editor1" EditorWysiwygModeCss="mystyle.css" runat="server" ></CE:Editor><br />       
      </form>
     </body>
    </html>

    2.  Save the following style setting to mystyle.css
    a:link,
    a:visited {
    color:red;
    text-decoration:underline;

    a:hover,
    a:active {
    color:yellow;
    text-decoration:none;
    }
     
    3. Run test.aspx
    4. Input some text in cuteeditor and click button "Insert Hyperlink"
    The style setting will work, I have tested it.
    Keep me posted.
     
    Thank you for asking
View as RSS news feed in XML