Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am developing an master page ,How can I develop the Menu bar using Html and Css.I don't know desining..please help me?
Posted

1 solution

see this link ..It may be helpful for you..
http://mrbool.com/how-to-create-menu-with-submenu-using-css-html/26146[^]

CSS
.sub_menu4 ul li {
    list-style:none;
    float:left;
    display:block;
    margin-left:10px;
    width: auto;
    margin-bottom: 3px;
    margin-top: 1px;
}

.sub_menu4 ul li a{
    float:left;
    padding-right:10px;
    font-family:arial;
    height:19px;
    color:#FFF;
    font-size:12px;
    font-weight:normal;
    text-decoration:none;
    text-transform:uppercase;
    cursor:pointer;
    background-color:transparent;
    line-height: 18px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 3px;
    /*border: 1px solid #009E15;*/
    border:1px solid #424B2C;
    margin-top:2px;
}

.sub_menu4 ul li a:hover {
    text-decoration:none;
    color:#FF0;
}

.sub_menu4 ul li a span{
    padding-left:10px;
    float:left;
    padding-top:1px;
    height:16px;
}

.sub_menu4 ul li a:hover span{
    color:#3D993D;
}

.sub_menu4 ul li a.active {
    text-decoration:none;
    color:#009;
    background-color: #AEC271;
}
.sub_menu55 ul li a.active55 {
    text-decoration:none;
    color:#009;


}
 
Share this answer
 
Comments
Sai Prasad anumolu 22-Apr-14 8:41am    
try
{
IFormatProvider provider = new System.Globalization.CultureInfo("en-CA", true);
String datefromtime = txtFromdate.Text.Trim();
String datetotime = txtTodate.Text.Trim();
DateTime dtf = DateTime.Parse(datefromtime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
DateTime dtt = DateTime.Parse(datetotime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);
ScriptManager.RegisterClientScriptBlock(imgclick, this.GetType(), "Open", "window.open('BreederReportPrint.aspx?fromdate=" + dtf + "&todate=" + dtt + "&type=" + "todate" + "&batchno=" + ddlbatchno.SelectedValue.ToString() + "&type=" + "batchno" + "&source=" + ddlSourcetype.SelectedValue.ToString() + "&type=" + "source" + "', '_blank', 'dependent,resizable=yes,scrollbars=yes,top=0,height=600');", true);
}
catch (Exception ex)
{
Log(ex.Message, ex.StackTrace);
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "Exception Message", "alert('You have an exception,please consult IT department')", true);

}
Sai Prasad anumolu 22-Apr-14 8:41am    
if (!IsPostBack)
{
txtFromdate.Text = DateTime.Now.ToUniversalTime().AddMinutes(DateTime.Now.Subtract(DateTime.Now.ToUniversalTime()).TotalMinutes).ToString("dd/MM/yyyy");
txtTodate.Text = DateTime.Now.ToUniversalTime().AddMinutes(DateTime.Now.Subtract(DateTime.Now.ToUniversalTime()).TotalMinutes).ToString("dd/MM/yyyy");
}

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