Click here to Skip to main content
15,898,926 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Am using flowing Method in my Dropdown tooltip.

  protected void dropdownConsignee_DataBound(object sender, EventArgs e)
        {
         
                string CustomerName;
                DataSet Ds = new DataSet();
                String cusCode = txtCusCode.Text.Trim();
                Ds =conSigneeList(cusCode);


                int ItemCount = dropdownConsignee.Items.Count;
                for (int i = 0; i < ItemCount; i++)
                {
                    dropdownConsignee.Items[i].Attributes.Add("Title", Ds.Tables[0].Rows[i]["Address"].ToString());
                }
                dropdownConsignee.Items.Insert(0, new ListItem("Select", "Address"));
                dropdownConsignee.SelectedItem.Selected = false;
                dropdownConsignee.Items.FindByText("Select").Selected = true;


        }



I want to change colour and Font Size In tooltip.Anyone can help me.

Thank You.   
Posted

1 solution

Hi,
You can change tool tip in css.Apply this css to your controls where ever you want to change the tool tip.
CSS
span.tooltip {
      position: absolute;
      width: 128px;
      height: 48px;
      line-height: 48px;
      padding: 0px 16px 0px 8px;
      font-size: 22px;
      text-align: center;
      color: rgb(255, 255, 255);
      background: rgb(96, 172, 57);
      border: 0px 0px 0px 0px none none none none rgb(255, 255, 255) rgb(70, 126, 42) rgb(255, 255, 255) rgb(255, 255, 255);
      border-radius: 0px 3.2px 3.2px 0px;
      text-shadow: rgba(0, 0, 0, 0.6) 1px 1px 1px;
      box-shadow: rgb(85, 153, 51) -4px 0px 4px 0px inset;
}

span.tooltip:after {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      border-width: 24px;
      border-style: solid;
      border-color: transparent #60AC39 transparent transparent;
      top: 0px;
      left: -48px;
}
 
Share this answer
 
Comments
[no name] 11-Mar-14 2:28am    
I need to witout using css changes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900