Click here to Skip to main content
15,920,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a web page . in this page i used horizontal menu .while Zoom in Webpage,horizontalMenu bar moving another side.. i need solution
Posted
Comments
You should share some code and screenshots.
meranaamshahul 16-Aug-13 5:22am    
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Main.Master.cs" Inherits="LumberFlooring.Main" %>

<!DOCTYPE html>

<html lang="en" class="no-js" xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<script src="Scripts/modernizr.custom.js"></script>
<script type="text/javascript">
function NavigateWindow(liElement) {
window.location.href = liElement.href;
}
</script>
<asp:PlaceHolder ID="PlaceHolder1" runat="server">
<%: Scripts.Render("~/bundles/jquery") %>
<%: Styles.Render("~/bundles/css") %>

<asp:ContentPlaceHolder ID="cphHead" runat="server">

<script type="text/javascript">
$(document).ready(function () {
$("#imgDown").click(function () {
$("#divMore").toggle();
});
});
</script>
<style type="text/css">

</style>
</head>
<body>
<form id="form1" runat="server">
<div id="divBackground" class="Background" >
<div id="Header">
<div class="container" >
<header class="clearfix headerTop" style="width: 100%">

<table>
<tr>
<td style="font-weight: 600; padding-right: 50px;">Welcome User</td>
<td>More
<asp:Image ID="imgDown" ClientIDMode="Static" Style="width: 10px; height: 10px" ImageUrl="~/Images/arrow-down.png" runat="server" />
<div id="divMore" class="toggleContainer" style="display: none;">
<ul>
<li>Help</li>
<li>Log</li>
</ul>
</div>
</td>
<td></td>
<td>
<asp:LinkButton ID="libtnLogOut" runat="server" Text="Log Out">
</td>
</tr>
</table>

</header>
<div class="main">


<ul>
<li id="liHome">
Home
<div class="cbp-hrsub">
<div class="cbp-hrsub-inner">
<div>
</div>
</div>
<!-- /cbp-hrsub-inner -->
</div>
<!-- /cbp-hrsub -->
</li>
<li id="liCompany">
Company
<div class="cbp-hrsub">
<div class="cbp-hrsub-inner">
<div>
meranaamshahul 16-Aug-13 5:23am    
.cbp-hrmenu {
width: 100%;
margin-top: 2em;
border-bottom: 1px solid #47a3da;
}

/* general ul style */
.cbp-hrmenu ul {
margin: 0;
padding: 0;
list-style-type: none;
}

.cbp-hrmenu .cbp-hrsub-inner
{
font-size:15px;
}
/* first level ul style */
.cbp-hrmenu > ul,
.cbp-hrmenu .cbp-hrsub-inner {
width: 90%;
/*max-width: 70em;*/
margin: 0 auto;
padding: 0 10em;
}

.cbp-hrmenu > ul > li {
display: inline-block;
}

.cbp-hrmenu > ul > li > a {
font-weight: 600;
padding: 0.5em 1em;
color: #999;
display: inline-block;
}

.cbp-hrmenu > ul > li > a:hover {
color: #47a3da;
}

.cbp-hrmenu > ul > li.cbp-hropen a,
.cbp-hrmenu > ul > li.cbp-hropen > a:hover {
color: #fff;
background: #47a3da;
}

/* sub-menu */
.cbp-hrmenu .cbp-hrsub {
display: none;
position: absolute;
background: #47a3da;
width: 1200px;
left: 8em;

}
.cbp-hropen .cbp-hrsub {
display: block;
padding-bottom: 0em;
}

.cbp-hrmenu .cbp-hrsub-inner > div {
width: inherit;
float: left;
padding: 0 0em 0;
}

.cbp-hrmenu .cbp-hrsub-inner:before,
.cbp-hrmenu .cbp-hrsub-inner:after {
content: " ";
display: table;
}

.cbp-hrmenu .cbp-hrsub-inner:after {
clear: both;
}

.cbp-hrmenu .cbp-hrsub-inner > div a {
line-height: 2em;
}

.cbp-hrsub h4 {
color: #afdefa;
padding: 2em 0 0.6em;
margin: 0;
font-size: 160%;
font-weight: 300;
}

/* Examples for media queries */

@media screen and (max-width: 52.75em) {

.cbp-hrmenu {
font-size: 80%;
}

}

@media screen and (max-width: 43em) {

.cbp-hrmenu {
font-size: 120%;
border: none;
}

.cbp-hrmenu > ul,
.cbp-hrmenu .cbp-hrsub-inner {
width: 100%;
padding: 0;
}

.cbp-hrmenu .cbp-hrsub-inner {

padding: 0 2em;
font-size: 75%;
}

.cbp-hrmenu > ul > li {
display: block;
border-bottom: 4px solid #47a3da;
}

.cbp-hrmenu > ul > li > a {
display: block;
padding: 1em 3em;
}

.cbp-hrmenu .cbp-hrsub {
position: relative;
}

.cbp-hrsub h4 {
padding-top: 0.6em;
}

}
.cbp-hrsub-inner > div > ul >li
{

padding-left:2em;
float:left;
}

@media screen and (max-width: 36em) {
.cbp-hrmenu .cbp-hrsub-inner > div {
width: 100%;
float: none;
padding: 0 0em;
}
}



/*----------------------------------*/
/* General Demo Style */
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);

@font-face {
font-family: 'fontawesome';
src:url('../fonts/fontawesome.eot');
src:url('../fonts/fontawesome.eot?#iefix') format('embedded-opentype'),
url('../fonts/fontawesome.svg#fontawesome') format('svg'),
url('../fonts/fontawesome.woff') format('woff'),
url('../fonts/fontawesome.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

/* Reset */
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}

.clearfix:after {
clear: both;
}


body {
font-family: 'Lato', Calibri, Arial, sans-serif;

}

.cbp-hrmenu a {
color: #f0f0f0;
text-decoration: none;
}

.container
{
font-family: 'Lato', Calibri, Arial, sans-serif;
font-size:15px;
}
.container > header {
width: 90%;
color: #47a3da;
}



.container > header span {
display: block;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5em;
padding: 0 0 0.6em 0.1em;
}

.container > header nav {
float: right;
color:black;
}

/*.container > header nav a {
display: block;
float: left;
position: relative;
width: 2.5em;
height: 2.5em;
background: #fff;
border-radius: 50%;
color: transparent;
margin: 0 0.1em;
border: 4px solid #47a3da;
text-indent: -8000px;
}*/

/*.container > header nav a:after {
content: attr(data-info);
color: #47a3da;
position: absolute;
width: 600%;
top: 120%;
text-align: right;
right: 0;
opacity: 0;
pointer-events: none;
}*/

/*.container > header nav a:hover:after {
opacity: 1;
}

.container >

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