2016-05-21 2 views
0

ナビゲーションメニューバーで1つのレベルに「検索ボックス」と「カートボタン」を配置して、最も外側に引っ張ってください。私はカートと検索ボックスPHPを含むメニューにdivを貼り付けようとしましたが、すぐに別の行に移動しました。OpenCartのナビゲーションメニューでカートボタンと検索ボックスを配置する

screenshot of a menu https://jsfiddle.net/nurutg7m/

body { 
 
\t font-family: 'Open Sans', sans-serif; 
 
\t font-weight: 400; 
 
\t color: #666; 
 
\t font-size: 12px; 
 
\t line-height: 20px; 
 
\t width: 100%; 
 
} 
 
h1, h2, h3, h4, h5, h6 { 
 
\t color: #444; 
 
} 
 
/* default font size */ 
 
.fa { 
 
\t font-size: 14px; 
 
} 
 
/* Override the bootstrap defaults */ 
 
h1 { 
 
\t font-size: 33px; 
 
} 
 
h2 { 
 
\t font-size: 27px; 
 
} 
 
h3 { 
 
\t font-size: 21px; 
 
} 
 
h4 { 
 
\t font-size: 15px; 
 
} 
 
h5 { 
 
\t font-size: 12px; 
 
} 
 
h6 { 
 
\t font-size: 10.2px; 
 
} 
 
a { 
 
\t color: #23a1d1; 
 
} 
 
a:hover { 
 
\t text-decoration: none; 
 
} 
 
legend { 
 
\t font-size: 18px; 
 
\t padding: 7px 0px 
 
} 
 
label { 
 
\t font-size: 12px; 
 
\t font-weight: normal; 
 
} 
 
select.form-control, textarea.form-control, input[type="text"].form-control, input[type="password"].form-control, input[type="datetime"].form-control, input[type="datetime-local"].form-control, input[type="date"].form-control, input[type="month"].form-control, input[type="time"].form-control, input[type="week"].form-control, input[type="number"].form-control, input[type="email"].form-control, input[type="url"].form-control, input[type="search"].form-control, input[type="tel"].form-control, input[type="color"].form-control { 
 
\t font-size: 12px; 
 
} 
 
.input-group input, .input-group select, .input-group .dropdown-menu, .input-group .popover { 
 
\t font-size: 12px; 
 
} 
 
.input-group .input-group-addon { 
 
\t font-size: 12px; 
 
\t height: 30px; 
 
} 
 
/* Fix some bootstrap issues */ 
 
span.hidden-xs, span.hidden-sm, span.hidden-md, span.hidden-lg { 
 
\t display: inline; 
 
} 
 

 
.nav-tabs { 
 
\t margin-bottom: 15px; 
 
} 
 
div.required .control-label:before { 
 
\t content: '* '; 
 
\t color: #F00; 
 
\t font-weight: bold; 
 
} 
 
/* Gradent to all drop down menus */ 
 
.dropdown-menu li > a:hover { 
 
\t text-decoration: none; 
 
\t color: #ffffff; 
 
\t background-color: #229ac8; 
 
\t background-image: linear-gradient(to bottom, #23a1d1, #1f90bb); 
 
\t background-repeat: repeat-x; 
 
} 
 
/* top */ 
 
#top { 
 
\t background-color: #EEEEEE; 
 
\t border-bottom: 1px solid #e2e2e2; 
 
\t padding: 4px 0px 3px 0; 
 
\t margin: 0 0 20px 0; 
 
\t min-height: 40px; 
 
} 
 
#top .container { 
 
\t padding: 0 20px; 
 
} 
 
#top #form-currency .currency-select, 
 
#top #form-language .language-select { 
 
\t text-align: left; 
 
} 
 
#top #form-currency .currency-select:hover, 
 
#top #form-language .language-select:hover { 
 
\t text-shadow: none; 
 
\t color: #ffffff; 
 
\t background-color: #229ac8; 
 
\t background-image: linear-gradient(to bottom, #23a1d1, #1f90bb); 
 
\t background-repeat: repeat-x; 
 
} 
 
#top .btn-link, #top-links li, #top-links a { 
 
\t color: #888; 
 
\t text-shadow: 0 1px 0 #FFF; 
 
\t text-decoration: none; 
 
} 
 
#top .btn-link:hover, #top-links a:hover { 
 
\t color: #444; 
 
} 
 
#top-links .dropdown-menu a { 
 
\t text-shadow: none; 
 
} 
 
#top-links .dropdown-menu a:hover { 
 
\t color: #FFF; 
 
} 
 
#top .btn-link strong { 
 
\t font-size: 14px; 
 
     line-height: 14px; 
 
} 
 
#top-links { 
 
\t padding-top: 6px; 
 
} 
 
#top-links a + a { 
 
\t margin-left: 15px; 
 
} 
 
/* logo */ 
 
#logo { 
 
\t margin: 0 0 10px 0; 
 
} 
 
/* search */ 
 
#search { 
 
\t margin-bottom: 10px; 
 
\t max-width: 20%; 
 
} 
 
#search .input-lg { 
 
\t height: 40px; 
 
\t line-height: 20px; 
 
\t padding: 0 10px; 
 
} 
 
#search .btn-lg { 
 
\t font-size: 15px; 
 
\t line-height: 18px; 
 
\t padding: 10px 35px; 
 
\t text-shadow: 0 1px 0 #FFF; 
 
} 
 
/* cart */ 
 
#cart { 
 
\t margin-bottom: 10px; 
 
\t max-width: 15%; 
 
} 
 
#cart > .btn { 
 
\t font-size: 12px; 
 
\t line-height: 18px; 
 
\t color: #FFF; 
 
} 
 
#cart.open > .btn { 
 
\t background-image: none; 
 
\t background-color: #FFFFFF; 
 
\t border: 1px solid #E6E6E6; 
 
\t color: #666; 
 
\t box-shadow: none; 
 
\t text-shadow: none; 
 
} 
 
#cart.open > .btn:hover { 
 
\t color: #444; 
 
} 
 
#cart .dropdown-menu { 
 
\t background: #eee; 
 
\t z-index: 1001; 
 
} 
 
#cart .dropdown-menu { 
 
\t min-width: 100%; 
 
} 
 
@media (max-width: 478px) { 
 
\t #cart .dropdown-menu { 
 
\t \t width: 100%; 
 
\t } 
 
} 
 
#cart .dropdown-menu table { 
 
\t margin-bottom: 10px; 
 
} 
 
#cart .dropdown-menu li > div { 
 
\t min-width: 427px; 
 
\t padding: 0 10px; 
 
} 
 
@media (max-width: 478px) { 
 
\t #cart .dropdown-menu li > div { 
 
\t \t min-width: 100%; 
 
\t } 
 
} 
 
#cart .dropdown-menu li p { 
 
\t margin: 20px 0; 
 
} 
 
/* menu */ 
 
#menu { 
 
\t background-color: #229ac8; 
 
\t background-image: linear-gradient(to bottom, #23a1d1, #1f90bb); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #1f90bb #1f90bb #145e7a; 
 
\t min-height: 40px; 
 
} 
 
#menu .nav > li > a { 
 
\t color: #fff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t padding: 10px 15px 10px 15px; 
 
\t min-height: 15px; 
 
\t background-color: transparent; 
 
} 
 
#menu .nav > li > a:hover, #menu .nav > li.open > a { 
 
\t background-color: rgba(0, 0, 0, 0.1); 
 
} 
 
#menu .dropdown-menu { 
 
\t padding-bottom: 0; 
 
} 
 
#menu .dropdown-inner { 
 
\t display: table; 
 
} 
 
#menu .dropdown-inner ul { 
 
\t display: table-cell; 
 
} 
 
#menu .dropdown-inner a { 
 
\t min-width: 160px; 
 
\t display: block; 
 
\t padding: 3px 20px; 
 
\t clear: both; 
 
\t line-height: 20px; 
 
\t color: #333333; 
 
\t font-size: 12px; 
 
} 
 
#menu .dropdown-inner li a:hover { 
 
\t color: #FFFFFF; 
 
} 
 
#menu .see-all { 
 
\t display: block; 
 
\t margin-top: 0.5em; 
 
\t border-top: 1px solid #DDD; 
 
\t padding: 3px 20px; 
 
\t -webkit-border-radius: 0 0 4px 4px; 
 
\t -moz-border-radius: 0 0 4px 4px; 
 
\t border-radius: 0 0 3px 3px; 
 
\t font-size: 12px; 
 
} 
 
#menu .see-all:hover, #menu .see-all:focus { 
 
\t text-decoration: none; 
 
\t color: #ffffff; 
 
\t background-color: #229ac8; 
 
\t background-image: linear-gradient(to bottom, #23a1d1, #1f90bb); 
 
\t background-repeat: repeat-x; 
 
} 
 
#menu #category { 
 
\t float: left; 
 
\t padding-left: 15px; 
 
\t font-size: 16px; 
 
\t font-weight: 700; 
 
\t line-height: 40px; 
 
\t color: #fff; 
 
\t text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); 
 
} 
 
#menu .btn-navbar { 
 
\t font-size: 15px; 
 
\t font-stretch: expanded; 
 
\t color: #FFF; 
 
\t padding: 2px 18px; 
 
\t float: right; 
 
\t background-color: #229ac8; 
 
\t background-image: linear-gradient(to bottom, #23a1d1, #1f90bb); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #1f90bb #1f90bb #145e7a; 
 
} 
 
#menu .btn-navbar:hover, #menu .btn-navbar:focus, #menu .btn-navbar:active, #menu .btn-navbar.disabled, #menu .btn-navbar[disabled] { 
 
\t color: #ffffff; 
 
\t background-color: #229ac8; 
 
} 
 
@media (min-width: 768px) { 
 
\t #menu .dropdown:hover .dropdown-menu { 
 
\t \t display: block; 
 
\t } 
 
} 
 
@media (max-width: 767px) { 
 
\t #menu { 
 
\t \t border-radius: 4px; 
 
\t } 
 
\t #menu div.dropdown-inner > ul.list-unstyled { 
 
\t \t display: block; 
 
\t } 
 
\t #menu div.dropdown-menu { 
 
\t \t margin-left: 0 !important; 
 
\t \t padding-bottom: 10px; 
 
\t \t background-color: rgba(0, 0, 0, 0.1); 
 
\t } 
 
\t #menu .dropdown-inner { 
 
\t \t display: block; 
 
\t } 
 
\t #menu .dropdown-inner a { 
 
\t \t width: 100%; 
 
\t \t color: #fff; 
 
\t } 
 
\t #menu .dropdown-menu a:hover, 
 
\t #menu .dropdown-menu ul li a:hover { 
 
\t \t background: rgba(0, 0, 0, 0.1); 
 
\t } 
 
\t #menu .see-all { 
 
\t \t margin-top: 0; 
 
\t \t border: none; 
 
\t \t border-radius: 0; 
 
\t \t color: #fff; 
 
\t } 
 
} 
 
/* content */ 
 
#content { 
 
\t min-height: 600px; 
 
} 
 
/* footer */ 
 
footer { 
 
\t margin-top: 30px; 
 
\t padding-top: 30px; 
 
\t background-color: #303030; 
 
\t border-top: 1px solid #ddd; 
 
\t color: #e2e2e2; 
 
} 
 
footer hr { 
 
\t border-top: none; 
 
\t border-bottom: 1px solid #666; 
 
} 
 
footer a { 
 
\t color: #ccc; 
 
} 
 
footer a:hover { 
 
\t color: #fff; 
 
} 
 
footer h5 { 
 
\t font-family: 'Open Sans', sans-serif; 
 
\t font-size: 13px; 
 
\t font-weight: bold; 
 
\t color: #fff; 
 
} 
 
/* alert */ 
 
.alert { 
 
\t padding: 8px 14px 8px 14px; 
 
} 
 
/* breadcrumb */ 
 
.breadcrumb { 
 
\t margin: 0 0 20px 0; 
 
\t padding: 8px 0; 
 
\t border: 1px solid #ddd; 
 
} 
 
.breadcrumb i { 
 
\t font-size: 15px; 
 
} 
 
.breadcrumb > li { 
 
\t text-shadow: 0 1px 0 #FFF; 
 
\t padding: 0 20px; 
 
\t position: relative; 
 
\t white-space: nowrap; 
 
} 
 
.breadcrumb > li + li:before { 
 
\t content: ''; 
 
\t padding: 0; 
 
} 
 
.breadcrumb > li:after { 
 
\t content: ''; 
 
\t display: block; 
 
\t position: absolute; 
 
\t top: -3px; 
 
\t right: -5px; 
 
\t width: 26px; 
 
\t height: 26px; 
 
\t border-right: 1px solid #DDD; 
 
\t border-bottom: 1px solid #DDD; 
 
\t -webkit-transform: rotate(-45deg); 
 
\t -moz-transform: rotate(-45deg); 
 
\t -o-transform: rotate(-45deg); 
 
\t transform: rotate(-45deg); 
 
} 
 
.pagination { 
 
\t margin: 0; 
 
} 
 
/* buttons */ 
 
.buttons { 
 
\t margin: 1em 0; 
 
} 
 
.btn { 
 
\t padding: 7.5px 12px; 
 
\t font-size: 12px; 
 
\t border: 1px solid #cccccc; 
 
\t border-radius: 4px; 
 
\t box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); 
 
} 
 
.btn-xs { 
 
\t font-size: 9px; 
 
} 
 
.btn-sm { 
 
\t font-size: 10.2px; 
 
} 
 
.btn-lg { 
 
\t padding: 10px 16px; 
 
\t font-size: 15px; 
 
} 
 
.btn-group > .btn, .btn-group > .dropdown-menu, .btn-group > .popover { 
 
\t font-size: 12px; 
 
} 
 
.btn-group > .btn-xs { 
 
\t font-size: 9px; 
 
} 
 
.btn-group > .btn-sm { 
 
\t font-size: 10.2px; 
 
} 
 
.btn-group > .btn-lg { 
 
\t font-size: 15px; 
 
} 
 
.btn-default { 
 
\t color: #777; 
 
\t text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); 
 
\t background-color: #e7e7e7; 
 
\t background-image: linear-gradient(to bottom, #eeeeee, #dddddd); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #dddddd #dddddd #b3b3b3 #b7b7b7; 
 
} 
 
.btn-primary { 
 
\t color: #ffffff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t background-color: #229ac8; 
 
\t background-image: linear-gradient(to bottom, #23a1d1, #1f90bb); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #1f90bb #1f90bb #145e7a; 
 
} 
 
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] { 
 
\t background-color: #1f90bb; 
 
\t background-position: 0 -15px; 
 
} 
 
.btn-warning { 
 
\t color: #ffffff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t background-color: #faa732; 
 
\t background-image: linear-gradient(to bottom, #fbb450, #f89406); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #f89406 #f89406 #ad6704; 
 
} 
 
.btn-warning:hover, .btn-warning:active, .btn-warning.active, .btn-warning.disabled, .btn-warning[disabled] { 
 
\t box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1); 
 
} 
 
.btn-danger { 
 
\t color: #ffffff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t background-color: #da4f49; 
 
\t background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #bd362f #bd362f #802420; 
 
} 
 
.btn-danger:hover, .btn-danger:active, .btn-danger.active, .btn-danger.disabled, .btn-danger[disabled] { 
 
\t box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1); 
 
} 
 
.btn-success { 
 
\t color: #ffffff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t background-color: #5bb75b; 
 
\t background-image: linear-gradient(to bottom, #62c462, #51a351); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #51a351 #51a351 #387038; 
 
} 
 
.btn-success:hover, .btn-success:active, .btn-success.active, .btn-success.disabled, .btn-success[disabled] { 
 
\t box-shadow: inset 0 1000px 0 rgba(0, 0, 0, 0.1); 
 
} 
 
.btn-info { 
 
\t color: #ffffff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t background-color: #df5c39; 
 
\t background-image: linear-gradient(to bottom, #e06342, #dc512c); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #dc512C#dc512C#a2371a; 
 
} 
 
.btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { 
 
\t background-image: none; 
 
\t background-color: #df5c39; 
 
} 
 
.btn-link { 
 
\t border-color: rgba(0, 0, 0, 0); 
 
\t cursor: pointer; 
 
\t color: #23A1D1; 
 
\t border-radius: 0; 
 
} 
 
.btn-link, .btn-link:active, .btn-link[disabled] { 
 
\t background-color: rgba(0, 0, 0, 0); 
 
\t background-image: none; 
 
\t box-shadow: none; 
 
} 
 
.btn-inverse { 
 
\t color: #ffffff; 
 
\t text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); 
 
\t background-color: #363636; 
 
\t background-image: linear-gradient(to bottom, #444444, #222222); 
 
\t background-repeat: repeat-x; 
 
\t border-color: #222222 #222222 #000000; 
 
} 
 
.btn-inverse:hover, .btn-inverse:active, .btn-inverse.active, .btn-inverse.disabled, .btn-inverse[disabled] { 
 
\t background-color: #222222; 
 
\t background-image: linear-gradient(to bottom, #333333, #111111); 
 
} 
 
/* list group */ 
 
.list-group a { 
 
\t border: 1px solid #DDDDDD; 
 
\t color: #888888; 
 
\t padding: 8px 12px; 
 
} 
 
.list-group a.active, .list-group a.active:hover, .list-group a:hover { 
 
\t color: #444444; 
 
\t background: #eeeeee; 
 
\t border: 1px solid #DDDDDD; 
 
\t text-shadow: 0 1px 0 #FFF; 
 
} 
 
/* carousel */ 
 
.carousel-caption { 
 
\t color: #FFFFFF; 
 
\t text-shadow: 0 1px 0 #000000; 
 
} 
 
.carousel-control .icon-prev:before { 
 
\t content: '\f053'; 
 
\t font-family: FontAwesome; 
 
} 
 
.carousel-control .icon-next:before { 
 
\t content: '\f054'; 
 
\t font-family: FontAwesome; 
 
} 
 
/* product list */ 
 
.product-thumb { 
 
\t border: 1px solid #ddd; 
 
\t margin-bottom: 20px; 
 
\t overflow: auto; 
 
} 
 
.product-thumb .image { 
 
\t text-align: center; 
 
} 
 
.product-thumb .image a { 
 
\t display: block; 
 
} 
 
.product-thumb .image a:hover { 
 
\t opacity: 0.8; 
 
} 
 
.product-thumb .image img { 
 
\t margin-left: auto; 
 
\t margin-right: auto; 
 
} 
 
.product-grid .product-thumb .image { 
 
\t float: none; 
 
} 
 
@media (min-width: 767px) { 
 
.product-list .product-thumb .image { 
 
\t float: left; 
 
\t padding: 0 15px; 
 
} 
 
} 
 
.product-thumb h4 { 
 
\t font-weight: bold; 
 
} 
 
.product-thumb .caption { 
 
\t padding: 0 20px; 
 
\t min-height: 180px; 
 
} 
 
.product-list .product-thumb .caption { 
 
\t margin-left: 230px; 
 
} 
 
@media (max-width: 1200px) { 
 
.product-grid .product-thumb .caption { 
 
\t min-height: 210px; 
 
\t padding: 0 10px; 
 
} 
 
} 
 
@media (max-width: 767px) { 
 
.product-list .product-thumb .caption { 
 
\t min-height: 0; 
 
\t margin-left: 0; 
 
\t padding: 0 10px; 
 
} 
 
.product-grid .product-thumb .caption { 
 
\t min-height: 0; 
 
} 
 
} 
 
.product-thumb .rating { 
 
\t padding-bottom: 10px; 
 
} 
 
.rating .fa-stack { 
 
\t font-size: 8px; 
 
} 
 
.rating .fa-star-o { 
 
\t color: #999; 
 
\t font-size: 15px; 
 
} 
 
.rating .fa-star { 
 
\t color: #FC0; 
 
\t font-size: 15px; 
 
} 
 
.rating .fa-star + .fa-star-o { 
 
\t color: #E69500; 
 
} 
 
h2.price { 
 
\t margin: 0; 
 
} 
 
.product-thumb .price { 
 
\t color: #444; 
 
} 
 
.product-thumb .price-new { 
 
\t font-weight: 600; 
 
} 
 
.product-thumb .price-old { 
 
\t color: #999; 
 
\t text-decoration: line-through; 
 
\t margin-left: 10px; 
 
} 
 
.product-thumb .price-tax { 
 
\t color: #999; 
 
\t font-size: 12px; 
 
\t display: block; 
 
} 
 
.product-thumb .button-group { 
 
\t border-top: 1px solid #ddd; 
 
\t background-color: #eee; 
 
\t overflow: auto; 
 
} 
 
.product-list .product-thumb .button-group { 
 
\t border-left: 1px solid #ddd; 
 
} 
 
@media (max-width: 768px) { 
 
\t .product-list .product-thumb .button-group { 
 
\t \t border-left: none; 
 
\t } 
 
} 
 
.product-thumb .button-group button { 
 
\t width: 60%; 
 
\t border: none; 
 
\t display: inline-block; 
 
\t float: left; 
 
\t background-color: #eee; 
 
\t color: #888; 
 
\t line-height: 38px; 
 
\t font-weight: bold; 
 
\t text-align: center; 
 
\t text-transform: uppercase; 
 
} 
 
.product-thumb .button-group button + button { 
 
\t width: 20%; 
 
\t border-left: 1px solid #ddd; 
 
} 
 
.product-thumb .button-group button:hover { 
 
\t color: #444; 
 
\t background-color: #ddd; 
 
\t text-decoration: none; 
 
\t cursor: pointer; 
 
} 
 
@media (max-width: 1200px) { 
 
\t .product-thumb .button-group button, .product-thumb .button-group button + button { 
 
\t \t width: 33.33%; 
 
\t } 
 
} 
 
@media (max-width: 767px) { 
 
\t .product-thumb .button-group button, .product-thumb .button-group button + button { 
 
\t \t width: 33.33%; 
 
\t } 
 
} 
 
.thumbnails { 
 
\t overflow: auto; 
 
\t clear: both; 
 
\t list-style: none; 
 
\t padding: 0; 
 
\t margin: 0; 
 
} 
 
.thumbnails > li { 
 
\t margin-left: 20px; 
 
} 
 
.thumbnails { 
 
\t margin-left: -20px; 
 
} 
 
.thumbnails > img { 
 
\t width: 100%; 
 
} 
 
.image-additional a { 
 
\t margin-bottom: 20px; 
 
\t padding: 5px; 
 
\t display: block; 
 
\t border: 1px solid #ddd; 
 
} 
 
.image-additional { 
 
\t max-width: 78px; 
 
} 
 
.thumbnails .image-additional { 
 
\t float: left; 
 
\t margin-left: 20px; 
 
} 
 

 
@media (min-width: 1200px) { 
 
\t #content .col-lg-2:nth-child(6n+1), 
 
\t #content .col-lg-2:nth-child(6n+1), 
 
\t #content .col-lg-3:nth-child(4n+1), 
 
\t #content .col-lg-4:nth-child(3n+1), 
 
\t #content .col-lg-6:nth-child(2n+1) { 
 
\t \t clear:left; 
 
\t } 
 
} 
 
@media (min-width: 992px) and (max-width: 1199px) { 
 
\t #content .col-md-2:nth-child(6n+1), 
 
\t #content .col-md-2:nth-child(6n+1), 
 
\t #content .col-md-3:nth-child(4n+1), 
 
\t #content .col-md-4:nth-child(3n+1), 
 
\t #content .col-md-6:nth-child(2n+1) { 
 
\t \t clear:left; 
 
\t } 
 
} 
 
@media (min-width: 768px) and (max-width: 991px) { 
 
\t #content .col-sm-2:nth-child(6n+1), 
 
\t #content .col-sm-2:nth-child(6n+1), 
 
\t #content .col-sm-3:nth-child(4n+1), 
 
\t #content .col-sm-4:nth-child(3n+1), 
 
\t #content .col-sm-6:nth-child(2n+1) { 
 
\t \t clear:left; 
 
\t } 
 
} 
 

 
/* fixed colum left + content + right*/ 
 
@media (min-width: 768px) { 
 
    #column-left .product-layout .col-md-3 { 
 
     width: 100%; 
 
    } 
 

 
\t #column-left + #content .product-layout .col-md-3 { 
 
     width: 50%; 
 
    } 
 

 
\t #column-left + #content + #column-right .product-layout .col-md-3 { 
 
     width: 100%; 
 
    } 
 

 
    #content + #column-right .product-layout .col-md-3 { 
 
     width: 100%; 
 
    } 
 
} 
 

 
/* fixed product layouts used in left and right columns */ 
 
#column-left .product-layout, #column-right .product-layout { 
 
\t width: 100%; 
 
} 
 

 
/* fixed mobile cart quantity input */ 
 
.input-group .form-control[name^=quantity] { 
 
\t min-width: 50px; 
 
} 
 

 
/* Missing focus and border color to overwrite bootstrap */ 
 
.btn-info:hover, .btn-info:active, .btn-info.active, .btn-info.disabled, .btn-info[disabled] { 
 
    background-image: none; 
 
    background-color: #df5c39; 
 
}
<!-- /* MENU START*/ --> 
 
<?php if ($categories) { ?> 
 
<div class="container"> 
 
    <nav id="menu" class="navbar"> 
 
     <div class="navbar-header"><span id="category" class="visible-xs"><?php echo $text_category; ?></span> 
 
     <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button> 
 
     </div> 
 
     <div class="collapse navbar-collapse navbar-ex1-collapse"> 
 
     <ul class="nav navbar-nav"> 
 
      <li><a href="http://www.letsbuynow.in/index.php?route=common/home"><i style="font-size:20px;" class="fa fa-home"></i></a></li> 
 
      <?php foreach ($categories as $category) { ?> 
 
      <?php if ($category['children']) { ?> 
 
      <li class="dropdown"> 
 
       <a href="<?php echo $category['href']; ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $category['name']; ?></a> 
 
       <div class="dropdown-menu"> 
 
        <div class="dropdown-inner"> 
 
        <?php foreach (array_chunk($category['children'], ceil(count($category['children'])/$category['column'])) as $children) { ?> 
 
        <ul class="list-unstyled"> 
 
         <?php foreach ($children as $child) { ?> 
 
         <li><a href="<?php echo $child['href']; ?>"><?php echo $child['name']; ?></a></li> 
 
         <?php } ?> 
 
        </ul> 
 
        <?php } ?> 
 
        </div> 
 
        <a href="<?php echo $category['href']; ?>" class="see-all"><?php echo $text_all; ?> <?php echo $category['name']; ?></a> 
 
       </div> 
 
      </li> 
 
      <?php } else { ?> 
 
      <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li> 
 
      <?php } ?> 
 
      <?php } ?> 
 
     </ul> 
 
     <form class="form-inline pull-xs-right"><?php echo $search; ?> </form> 
 
     <form class="form-inline pull-xs-right"><?php echo $cart; ?></form> 
 
     </div> 
 
    </nav> 
 
</div>

答えて

1

あなたはこの1

<li><form class="form-inline pull-xs-right"><?php echo $search; ?> </form></li> 
<li><form class="form-inline pull-xs-right"><?php echo $cart; ?></form></li> 
</ul> 
+0

はどうもありがとうございまし試すリスト に検索、カートボタンを追加することができ、それが動作するようになりました! !! –

関連する問題