I have a div that is a panel, and I want to apply to the body a black background color, when I do that it left around 100 px white space
I think that happens because in my css I defined
.Stock{
min-height:600px;
height:600px;
}
but I want the div to be that big it matches the perfect size, if I cut this css the size changes, I want to maintain the size and have that white space filled, how can I do that ?
here is the html of the specific div
<div class="panel panel-default Stock">
<div class="panel-heading panel-heading-custom clearfix">
<div>
Controlo de stock
<div class="pull-right">
<img alt="" class="warningImg" height="20" src="../warning.png" width="20">
</div>
<div class="pull-right">
<h4 id="numberWarnings"></h4>
</div>
</div>
</div>
<div class="panel-body ProdutosTodos">
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeIceTea"></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeCroissant"></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeKitKat"></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeKinderBueno"></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeWatter"></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeBubbleGums"></p><a class="editar" href="#">editar</a> eliminar
</div>
<div class="col-md-6 SeccaoProduto">
<p class="productName"></p>
<p>Quantidade Atual: <span class="quantidadeProduto"></span></p>
<p id="quantidadeCheaps"></p><a class="editar" href="#">editar</a> eliminar
</div>
</div>
<form action="" class="form-horizontal" id="formularioEdicao" name="formularioEdicao">
<div class="col-md-offset-1">
<span class="glyphicon glyphicon-arrow-left"></span>
</div>
<div class="form-group">
<label class="control-label col-md-offset-1 col-md-2" for="">Produto</label>
<div class="col-md-8">
<input class="form-control" id="EditarNomeProduto" type="text">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-offset-1 col-md-2" for="">Quantidade</label>
<div class="col-md-offset-1 col-md-6">
<input class="sliderProducts" type="range">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-1 col-sm-10">
<button class="btn btn-default" id="GuardarEdicao">Guardar</button>
</div>
</div>
</form>
</div>
The issue you are running into is coming from .panel in panels.less:
.panel {
margin-bottom: 20px; // <-- Your background-color will not fill 100%
background-color: #fff;
border: 1px solid transparent;
border-radius: 4px;
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.05);
box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
The image you have shown does not look like 100px. Try setting margin-bottom: 0;.
Use this CSS. It will fix your problem:
.panel {
background: black;
margin-bottom: 0px;
min-height: 600px;
height: 700px;
}
You don't have to make the min-height and the height the same. Try this:
.Stock {
min-height: 600px;
height: 100%;
}
or maybe:
.Stock {
min-height: 600px;
height: 700px;
}
Related
I have a list view of data displayed as cards and I'm trying to get to a pure CSS solution where I'll have only inner border lines.
The cards will display a max of two per row and will wrap to the next line when there are more. We're using bootstrap col-md-6 to achieve this.
Here's an example of three data items displayed as cards and what I'm trying to achieve with the inner grid lines.
Notes:
If there are only two items then the bottom line shouldn't be visible
I thought I could use adapt the technique mentioned here by Lea Verou, but I haven't been able to get it to work.
Regardless of how many items there are none of the outer borders should ever show. This is especially so with the last 1 or two items depending on the total count of items
Here's an example of the HTML markup for an individual list item:
<div class="col-md-6">
<div class="form-group">
<label class="control-label">Name</label>
<div class="form-control-static">Fund</div>
</div>
<div class="form-group">
<label class="control-label">Tax Rate</label>
<div class="form-control-static">1</div>
</div>
<div class="form-group">
<label class="control-label">Amount</label>
<div class="form-control-static">10</div>
</div>
<div class="edit-buttons">
<a class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span> edit</a>
<a class="btn btn-link><span class="glyphicon glyphicon-remove"></span> delete</a>
</div>
</div>
I know to get the middle line I can use:
.col-md-6:nth-child(odd){
border-right:1px solid gray;
}
The problem comes in with the bottom border, i.e. if you have a total of three data items then only the last one should have its bottom border set to 'none'. If there are four then the last two would need their bottom borders set to 'none'.
What's the best approach to getting this to work without the use of tables?
In other words, the last item should have always border: none.
And the before-the last item, only when it's odd.
I will skip the style to make the grid, since this is not really relevant
Let's begin setting border to all but the last 2:
div {
display: inline-block;
}
.container {
border: solid 1px black;
}
.container div {
width: 50px;
height: 50px;
margin: 5px;
background-color: lightblue;
}
.container div:nth-last-child(n + 3) {
border-bottom: solid 4px green;
}
<div class="container">
<div></div>
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
And now the before-the-lasty, if even
div {
display: inline-block;
}
.container {
border: solid 1px black;
}
.container div {
width: 50px;
height: 50px;
margin: 5px;
background-color: lightblue;
}
.container div:nth-last-child(2):nth-child(even) {
border-bottom: solid 4px red;
}
<div class="container">
<div></div>
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
So, the end result:
div {
display: inline-block;
}
.container {
border: solid 1px black;
width: 130px;
vertical-align: top;
}
.container div {
width: 50px;
height: 50px;
margin: 5px;
background-color: lightblue;
}
.container div:nth-last-child(n + 3),
.container div:nth-last-child(2):nth-child(even) {
border-bottom: solid 4px blue;
}
<div class="container">
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
you could wrap each 2 cols inside a row. and give border-bottom to that row instead of the cols
see below
.col-md-6:first-child { border-right:1px solid gray}
.row:not(:last-child) { border-bottom:1px solid gray}
.container-fluid { margin:15px auto;}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-xs-6 col-sm-6">
<div class="form-group">
<label class="control-label">Name</label>
<div class="form-control-static">Fund</div>
</div>
<div class="form-group">
<label class="control-label">Tax Rate</label>
<div class="form-control-static">1</div>
</div>
<div class="form-group">
<label class="control-label">Amount</label>
<div class="form-control-static">10</div>
</div>
<div class="edit-buttons">
<a class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span> edit</a>
<a class="btn btn-link"><span class="glyphicon glyphicon-remove"></span> delete</a>
</div>
</div>
<div class="col-md-6 col-xs-6 col-sm-6">
<div class="form-group">
<label class="control-label">Name</label>
<div class="form-control-static">Fund</div>
</div>
<div class="form-group">
<label class="control-label">Tax Rate</label>
<div class="form-control-static">1</div>
</div>
<div class="form-group">
<label class="control-label">Amount</label>
<div class="form-control-static">10</div>
</div>
<div class="edit-buttons">
<a class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span> edit</a>
<a class="btn btn-link"><span class="glyphicon glyphicon-remove"></span> delete</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-6 col-sm-6">
<div class="form-group">
<label class="control-label">Name</label>
<div class="form-control-static">Fund</div>
</div>
<div class="form-group">
<label class="control-label">Tax Rate</label>
<div class="form-control-static">1</div>
</div>
<div class="form-group">
<label class="control-label">Amount</label>
<div class="form-control-static">10</div>
</div>
<div class="edit-buttons">
<a class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span> edit</a>
<a class="btn btn-link"><span class="glyphicon glyphicon-remove"></span> delete</a>
</div>
</div>
<div class="col-md-6 col-xs-6 col-sm-6">
<div class="form-group">
<label class="control-label">Name</label>
<div class="form-control-static">Fund</div>
</div>
<div class="form-group">
<label class="control-label">Tax Rate</label>
<div class="form-control-static">1</div>
</div>
<div class="form-group">
<label class="control-label">Amount</label>
<div class="form-control-static">10</div>
</div>
<div class="edit-buttons">
<a class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span> edit</a>
<a class="btn btn-link"><span class="glyphicon glyphicon-remove"></span> delete</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-6 col-sm-6">
<div class="form-group">
<label class="control-label">Name</label>
<div class="form-control-static">Fund</div>
</div>
<div class="form-group">
<label class="control-label">Tax Rate</label>
<div class="form-control-static">1</div>
</div>
<div class="form-group">
<label class="control-label">Amount</label>
<div class="form-control-static">10</div>
</div>
<div class="edit-buttons">
<a class="btn btn-link"><span class="glyphicon glyphicon-pencil"></span> edit</a>
<a class="btn btn-link"><span class="glyphicon glyphicon-remove"></span> delete</a>
</div>
</div>
</div>
</div>
Put a common class in every card. Here I assumed it as card
.card:nth-child(odd){
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
}
.card:nth-child(even){
border-bottom: 1px solid #ddd;
}
This question already has answers here:
Center a column using Twitter Bootstrap 3
(34 answers)
Closed 6 years ago.
.secondRow{
margin-top: 25px;
}
.iconBigger{
font-size: 26px;
color: grey;
}
.letterSmall{
font-size: 10px;
padding-top: 5px;
}
.getPadding{
padding-left: 10px;
cursor: pointer;
}
.getPadding:hover{
color: #E71D35;
transition-duration: 250ms;
}
.getPadding:hover .iconBigger{
color: #E71D35;
transition-duration: 250ms;
}
#media screen and (max-width: 768px) {
.aas {
float: left;
}
}
<div class="row secondRow center-block">
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="information ac ib getPadding">
<span class="glyphicon glyphicon-menu-hamburger iconBigger" aria-hidden="true" />
<p class="letterSmall">ՏԵՂԵԿԱՏՎՈՒԹՅՈՒՆ</p>
</div>
<div class="contactUs ac ib getPadding">
<span class="glyphicon glyphicon-envelope iconBigger" aria-hidden="true" />
<p class="letterSmall">CONTACT US</p>
</div>
</div>
<div class="col-xs-12 col-sm-2 col-sm-offset-0 col-lg-3 col-lg-offset-2">
<div class="logoHolder"><img src="images/logo.png" alt=""></div>
</div>
<div class="col-xs-12 col-sm-4 col-sm-offset-1 col-lg-3 col-lg-offset-1">
<div class="fr aas">
<div class="information ac ib getPadding">
<span class="glyphicon glyphicon-menu-hamburger iconBigger" aria-hidden="true" />
<p class="letterSmall">ՏԵՂԵԿԱՏՎՈՒԹՅՈՒՆ</p>
</div>
<div class="contactUs ac ib getPadding">
<span class="glyphicon glyphicon-envelope iconBigger" aria-hidden="true" />
<p class="letterSmall">CONTACT US</p>
</div>
</div>
</div>
</div>
Guys, please help me. When it is already in xs-12 mode, everything floats to left, but I need them to be all in xs-12 mode and in the center. How can I get them to be in center? I have tried to get them to center by different ways, but unfortunately i couldn`t.
Add margin:0 auto and display:table to the element which you have to be in center.I think this is the solution you want.
.secondRow{
margin:0 auto;
display:table;
}
.iconBigger{
font-size: 26px;
color: grey;
}
.letterSmall{
font-size: 10px;
padding-top: 5px;
}
.getPadding{
padding-left: 10px;
cursor: pointer;
}
.getPadding:hover{
color: #E71D35;
transition-duration: 250ms;
}
.getPadding:hover .iconBigger{
color: #E71D35;
transition-duration: 250ms;
}
#media screen and (max-width: 768px) {
.aas {
float: left;
<div class="row secondRow center-block">
<div class="col-xs-12 col-sm-4 col-lg-3">
<div class="information ac ib getPadding">
<span class="glyphicon glyphicon-menu-hamburger iconBigger" aria-hidden="true"></span>
<p class="letterSmall">ՏԵՂԵԿԱՏՎՈՒԹՅՈՒՆ</p>
</div>
<div class="contactUs ac ib getPadding">
<span class="glyphicon glyphicon-envelope iconBigger" aria-hidden="true"></span>
<p class="letterSmall">CONTACT US</p>
</div>
</div>
<div class="col-xs-12 col-sm-2 col-sm-offset-0 col-lg-3 col-lg-offset-2">
<div class="logoHolder">
<img src="images/logo.png" alt="">
</div>
</div>
<div class="col-xs-12 col-sm-4 col-sm-offset-1 col-lg-3 col-lg-offset-1">
<div class="fr aas">
<div class="information ac ib getPadding">
<span class="glyphicon glyphicon-menu-hamburger iconBigger" aria-hidden="true"></span>
<p class="letterSmall">ՏԵՂԵԿԱՏՎՈՒԹՅՈՒՆ</p>
</div>
<div class="contactUs ac ib getPadding">
<span class="glyphicon glyphicon-envelope iconBigger" aria-hidden="true"></span>
<p class="letterSmall">CONTACT US</p>
</div>
</div>
</div>
</div>
I have implemented tabs using uib-tabset. There is issue with alignment of tab.
As you can see in below image, my 'Current' tab is shifted to left and it is moving out of card leaving uncomfortable space between 'Current' and 'Upcoming'.
I want both tabs to aligned perfectly with card.
Is there any way?
I have tried changing CSS in a lot of ways (.nav-tabs especially) but no luck.
HTML:
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="card" style="margin-left:3%;margin-right:3%" ng-controller="AppointmentsCtrl">
<uib-tabset active="active">
<div class="row">
<div class="col-xs-6 nav nav-tabs">
<uib-tab index="0" heading="Current"> <!-- -->
<ul class="list-group">
<li class="list-group-item">
<!-- <div id="accordion" role="tablist" aria-multiselectable="true"> -->
<div class="panel panel-default" style="border-color: white;">
<div class="panel-heading" role="tab" id="headingOne"
style="background-color: #686868; margin-top: 5%;">
<div class="row">
<div class="col-xs-2">
<div class="myimage">
<img id="image" src="img/Calender.png"
style="width: 30px; height: 30px;"></img>
<p id="text">26</p>
</div>
</div>
<div class="col-xs-8">
<p class="panel-title" data-toggle="collapse"
data-parent="#accordion"
ng-click="isCollapsed = !isCollapsed" aria-expanded="true"
aria-controls="collapseOne"
style="color: white; font-size: 15px">
Monday, 26 Sep 2016<br> 02:00 PM
</p>
</div>
<div class="col-xs-2">
<a data-toggle="collapse" data-parent="#accordion"
ng-click="isCollapsed = !isCollapsed" aria-expanded="true"
aria-controls="collapseOne"><img id="arrow"
src="img/Down_Arrow.png" style="width: 30px; height: 30px;"></img></a>
</div>
</div>
</div>
<div id="collapseOne" uib-collapse="isCollapsed"
class="panel-collapse collapse" role="tabpanel"
aria-labelledby="headingOne"
style="background-color: #d5d5d5;">
<div class="row">
<div class="col-xs-6 col-sm-offset-1">
<h5 style="color: #696969; margin-top: 5%;">Visitor
Name</h5>
<h5 style="color: #000; font-weight: bold;">Subodh
Bagade</h5>
<h5 style="color: #696969;">Purpose</h5>
<h5 style="color: #000; font-weight: bold;">Sales
Meeting</h5>
</div>
<div class="col-xs-6">
<img src="img/Gray_User.png"
style="margin-top: 10%; width: 110px; height: 100px;"></img>
</div>
</div>
<hr>
<div class="row">
<div class="col-xs-4">
<!-- <a ng-href="#/viewdetails/appointmentId={{appointment.appointmentId}}"> -->
<a ng-href="#/viewdetails/appointmentId=1"> <img
src="img/more.png" style="width: 30px; height: 30px;"></img>
</a>
</div>
<div class="col-xs-4">
<!-- <a ng-href="#/edit/appointmentId={{appointment.appointmentId}}"> -->
<a ng-href="#/edit/appointmentId=1"> <img
src="img/Edit_White.png" style="width: 30px; height: 30px;"></img>
</a>
</div>
<div class="col-xs-4">
<a ng-href="#" onClick="confirm('Are you sure?')"> <img
src="img/Delete.png" style="width: 30px; height: 30px;"></img>
</a>
</div>
</div>
</div>
</div>
<!-- </div> -->
</li>
</ul>
<!-- --> </uib-tab>
</div>
<div class="col-xs-6 nav nav-tabs">
<uib-tab index="1" heading="Upcoming">
<p>Some text here.</p>
</uib-tab>
</div>
</div>
</uib-tabset>
</div>
</div>
</div>
</div>
A part of my CSS:
.nav-tabs {
border-bottom: 1px solid #ddd;
}
.nav-tabs>li {
/* float: left; */
margin-bottom: -1px;
background-color:#E9880A;
}
.nav-tabs>li>a {
margin-right: 2px;
line-height: 0.42857143;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
}
this looks more like alignment issue. Once you align the tabs individually it should work fine. I was able to get it aligned by adjusting the tabs individually.
I have no idea where from I get this horizontal bar in the bottom. I tried overflow: hidden; but that didn't work. I looked on the internet but most people recommend the same line that I wrote above.
I am not an expert in css, html or bootstrap. I know a little from each one. Somehow I made a mistake in my code.
Please someone tell me what I did wrong in CSS, HTML or Bootstrap.
CSS:
body {
background-color: #EEEEEE;
}
ul, ul li {
margin: 0;
padding: 0;
list-style: none;
}
.top-red-hr {
display: block;
margin-top: 0.5em;
margin-bottom: 0.5em;
margin-left: auto;
margin-right: auto;
border-style: inset;
border: 4px solid #8C1113;
}
.top-first-menu {
width: 100%;
display: table;
}
.top-first-menu .menu-right {
float: right;
padding: 20px 0 10px 0;
}
.top-second-menu {
background: #000000;
}
.top-second-menu .logo {
display: inline-block;
padding-left: 20px;
}
.top-second-menu .logo h1 {
color: #961915;
margin-bottom: 5px;
line-height: 0.8;
}
.top-second-menu .logo h1 span {
color: #FFFFFF;
}
.top-second-menu .logo p {
color: #FFFFFF;
}
.top-second-menu .top-red-buttons {
display: inline-block;
}
.top-second-menu .top-red-buttons button{
float: right;
margin-right: 10px;
}
.top-second-menu .language-menu {
display: inline-block;
}
.top-second-menu .top-red-buttons,
.top-second-menu .language-menu {
padding-top: 28px;
}
.consulter-form form,
.consulter-form h2{
background-color: #DFE3E4;
}
.consulter-form h2 {
width: 70%;
margin-bottom: 0px;
border: none;
}
.consulter-form form {
margin-top: 0px;
border-top: 1px solid #DFE3E4;
}
.vous-voulez-button {
background-color: #DFE3E4;
}
.trouver-hr {
width:100%;
height:5px;
display:block;
margin-top:50px;
background:#efefef;
border-top:1px solid #CCC;
border-bottom:1px solid #FFF;
}
.text-p, .vous-voulez {
margin-top: 40px;
}
.rubrique-promo {
}
.rubrique {
}
.boxes-details {
background-color: #FFFFFF;
}
.boxes-images {
margin-bottom: 40px;
}
.boxes-images img {
width: 100%;
}
.boxes-images h4 {
text-align: center;
background-color: #8C1211;
color: #FFFFFF;
padding: 10px 0px 10px 0px;
font-weight: bold;
margin-top: 0px;
margin-bottom: 0px;
}
.boxes-images .details {
background-color: #D6D6D6;
border-bottom-right-radius:4px;
border-bottom-left-radius:4px;
}
.boxes-images .details-text {
color: #8C1211;
padding-top: 10px !important;
}
.boxes-images .details p {
padding: 0px 10px;
}
.boxes-images .details p:last-child {
padding-bottom: 10px;
}
.boxes-images .details p:nth-child(2) {
border-top: 2px solid #AAAAAA;
border-bottom: 2px solid #E5E0E0;
padding: 7px 10px;
}
.boxes-images .details p span{
float: right;
}
.bottom-hr-black {
margin-top: 100px;
margin-bottom: 0px;
}
footer {
margin-bottom: 50px;
}
.discount {
text-align: center;
background: #D6D6D6;
}
.discount p {
line-height: 1.5;
}
.first-p-bottom {
margin-top: 10px;
}
.bottom-black-hr {
display: block;
width: 100%;
margin-top: 100px;
margin-bottom: 0;
margin-left: auto;
margin-right: auto;
border-style: inset;
border: 4px solid #444444;
}
.footer-lists {
background-color: #444444;
color: #FFFFFF;
}
.list-links h4 {
border-bottom: 2px solid #FFFFFF;
text-align: left;
}
.list-links ul li {
border-bottom: 1px solid #FAFBF9;
color: #FAFBF9;
}
.list-links ul li a {
color: #FAFBF9;
text-decoration: none;
}
.copyright {
text-align: center;
margin: 30px 0px 10px 0px;
}
HTML:
<!DOCTYPE>
<html>
<head>
<title>CLICK COOL</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<div class="container-fluid">
<div class="top-first-menu">
<div class="btn-group menu-right">
<button type="button" class="btn btn-default active btn-lg">Espace clients</button>
<button type="button" class="btn btn-default active btn-lg">Promotions - Fin de series</button>
<button type="button" class="btn btn-default active btn-lg">Devenir partenaire</button>
</div>
</div><!-- end top-first-menu -->
<div class="top-second-menu container-fluid">
<div class="row">
<div class="logo col-md-5">
<h1>CLICK<span>COOL</span></h1>
<p>Le site ideal pour promouvoir vos activites</p>
</div><!-- end logo -->
<div class="top-red-buttons col-md-6">
<button type="button" class="btn btn-danger">TARIF - SERVICES</button>
<button type="button" class="btn btn-danger">CLICK CORPORATE</button>
<button type="button" class="btn btn-danger">STANDARD SVI</button>
</div><!-- end top-red-buttons -->
<div class="language-menu col-md-1">
<div class="form-group">
<!-- <label for="sel1">Select list:</label> -->
<select class="form-control" id="sel1">
<option>En</option>
<option>Fr</option>
<option>Ch</option>
</select>
</div>
</div><!-- end language-menu -->
</div>
</div><!-- end top-second-menu -->
<hr class="top-red-hr">
</div><!-- end container-fluid -->
</header>
<main class="container-fluid">
<div class="home-top-selects">
<div class="row">
<div class="consulter-form col-sm-6">
<h2>Consulter les petites annonces</h2>
<form>
<div class="row">
<div class="col-sm-8">
<h4>Par mot-cle les petites annonces</h4>
</div>
</div>
<div class="row">
<div class="col-sm-8">
<input type="text" class="form-control" id="usr" />
</div>
<div class="col-sm-4">
<select class="form-control" id="sel1">
<option>Toutes categories</option>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<h4>Ou?</h4>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<select class="form-control" id="select-flags">
<option>En</option>
<option>Fr</option>
<option>Ch</option>
</select>
</div>
<div class="col-sm-5">
<select class="form-control" id="another-select">
<option>toutes les villes select</option>
</select>
</div>
<div class="col-sm-4 text-right">
<button class="btn btn-primary btn-block" type="submit">
Lancez Votre Recherche
</button>
</div>
</div>
<h5 class="text-info text-center">
Faite une recherche dans votre perimetre grace a votre geolocalisation.
</h4>
</form>
</div>
<div class="consulter-form col-sm-6">
<h2>Trouver Une Enterprise</h2>
<form>
<div class="row">
<div class="col-sm-6">
<h4>Par mot-cle ou nom d'enterprise</h4>
</div>
<div class="col-sm-3">
<h4>Ou?</h4>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<input type="text" class="form-control" id="usr-2" />
</div>
<div class="col-sm-3">
<select class="form-control" id="another-select-2">
<option>Toutes les villes select</option>
</select>
</div>
<div class="col-sm-3">
<select class="form-control" id="select-flags-2">
<option>En</option>
<option>Fr</option>
<option>Ch</option>
</select>
</div>
</div>
<!-- Place this to fill the blank space -->
<div class="row">
<div class="col-sm-12">
<h4> </h4>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<select class="form-control" id="different-select">
<option>Autres options de recherche</option>
</select>
</div>
<div class="col-sm-offset-3 col-sm-3">
<button class="btn btn-primary btn-block" type="submit">
Chercher
</button>
</div>
</div>
<div class="trouver-hr"></div>
<div class="text-center">
<h3 class="text-info">
Votre enterprise n'est pas referencee?
</h3>
<button class="btn btn-large btn-default">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> AJOUTER MON ENTERPRISE
</button>
</div>
</form>
</div>
</div>
</div>
<div class="vous-voulez ">
<div class="row">
<div class="consulter-form col-sm-6">
<h4>Vous voulez vendre votre bien rapidement?</h4>
<button type="button" class="btn btn-success btn-block">Cliquez ici pour une annonce gratuitement!</button>
</div>
<div class="consulter-form col-sm-6">
<h4>Recherche par numero de telephone</h4>
<form>
<div class="row">
<div class="col-sm-9">
<input type="text" class="form-control" id="usr" />
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default active">CHERCHER</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="text-p">
<div class="row">
<div class="col-sm-6">
<div class="row">
<div class="col-sm-9">
<p>Cliquez sur l'une des icones suivantes pour masquer la recherche</p>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default active"><span class="glyphicon glyphicon-arrow-down" aria-hidden="false"></span></button>
<button type="button" class="btn btn-default active"><span class="glyphicon glyphicon-arrow-down" aria-hidden="true"></span></button>
<button type="button" class="btn btn-default active"><span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span></button>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="row">
<div class="col-sm-9">
<p>Aimeriez-vous promouvoir votre actiuvite ou produit? Consultez nos tarifs
</div>
</div>
</div>
</div>
</div>
<div class="text-p">
<div class="row">
<div class="col-sm-1">
<img src="#"><p>PUB</p>
</div>
<div class="col-sm-11">
<div class="row">
<img src="images/Calque-6e.png">
</div>
</div>
</div>
</div>
<div class="text-p">
<div class="row">
<div class="col-sm-5 text-center">
<button type="button" class="btn btn-default active">Toutes les petites announces</button>
</div>
<div class="col-sm-7 text-right">
<p>Petites announces gratuites aujourd'hui avec plus de 10'000 announces</p>
</div>
</div>
</div>
<div class="text-p text-center">
<div class="row">
<div class="col-sm-3">
<button type="button" class="btn btn-default active">Automobilies & Accesories</button>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default active">Immobiliers & Prestige</button>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default active">Emploi & Carrieres</button>
</div>
<div class="col-sm-3">
<button type="button" class="btn btn-default active">Hotel & Restaurant</button>
</div>
</div>
</div>
<div class="text-p rubrique-promo">
<div class="row">
<div class="col-sm-4 rubrique">
<h3>Rubrique</h3>
<ul>
<li>ANIMAUX & ACCESSOIRES </li>
<li>ART & ANTIQUITES</li>
<li>AUTOMOBILES</li>
<li>BIJOUTERIE</li>
<li>BRICOLAGES & JARDINAGE</li>
<li>COLLECTIONS</li>
<li>EMPLOI</li>
<li>ENFANTS</li>
<li>ENFANTS & BEBE</li>
<li>IMMOBILIER</li>
</ul>
</div>
<div class="col-sm-7">
<img src="images/promo.jpg">
</div>
</div>
</div>
<div class="text-p boxes-details">
<div class="row">
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
<div class="col-sm-3 boxes-images">
<img src="images/automobile.jpg">
<h4>IMMOBILIER</h4>
<div class="details">
<p class="details-text">Magnifique et spacieux 4,5 pieces: 1mios de loyer</p>
<p>Lieu<span>suchy</span><p>
<p>Prix<span>CHF 2'250</span></p>
</div>
</div>
</div>
</div>
<div class="row">
<div col-sm-12>
<div class="bottom-black-hr">
</div>
</div>
<div class="discount">
<div class="row">
<div class="col-sm-12 footer-p">
<p class="first-p-bottom">Le depot d'annonces, inclus 10 photos et 5 videos.</p>
<p>4 devises proposees: CHF, EURO, USD, GBP / Pour vendre, acheter, fournir vos presentations</p>
</div>
</div>
</div>
</main>
<footer class="footer-lists container-fluid">
<div class="row">
<div class="col-sm-3 list-links">
<h4>A propos</h4>
<ul>
<li>Qui somme nous</li>
<li>Relations investisseurs</li>
<li>Clickcool pour particuliers</li>
<li>Clickcool pour professionnels</li>
</ul>
</div>
<div class="col-sm-3 list-links">
<h4>Utilitaries</h4>
<ul>
<li>FAQ</li>
<li>Partners links</li>
<li>Regles de diffusion</li>
<li>Infos legales et CGU</li>
</ul>
</div>
<div class="col-sm-3 list-links">
<h4>Liens utile</h4>
<ul>
<li>Tarifs</li>
<li>Concept</li>
<li>Publicite</li>
<li>Formulaire de contact</li>
</ul>
</div>
<div class="col-sm-3 list-links">
<img src="images/Calque-52-text.png">
</div>
</div>
<div class="row">
<div class="col-sm-12 copyright">
<p>Copyright © 2015-106. Tous droits reserves</p>
</div>
</div>
</footer>
</body>
</html>
add overflow:hidden to body, it works
body {
overflow-x: hidden;
}
.row classes will have margin-left, margin-right has -15px, so it will cause the scroll bar. You better to wrap .row elements in .container class or you need to wrap .row elememts with another parent element which should have padding of 15px
At first there are some markup errors. See line 100 - opening h5 tag, closing h4 tag. Perhaps there are much more errors. So we don't know is html rendered correctly.
Let's run the snippet and look at its code in console.
We can see that block discount and block without class (with attr col-sm-12) are placed in block row. So adding class col-* to discount seems to be good solution to solve problem with horizontal scrolling.
According bootstrap greed docs, row item must contain col items.
But let's open raw code:
Block discount isn't place in row. It can mean only one - there are errors in documents markup. Look at line 363 - there isn't closing </div> tag. Fix it and run code - it seems all works fine. But lets add class col-sm-12 to the div at 362 line instead attribute. Brilliant! We fix all errors!
Summary.
Line 100: fix closing tag of h5.
Line 362: replace attribute col-sm-12 by class col-sm-12.
Line 363: add closing tag for div.
You can do the following trick:
body {
overflow-x: hidden;
}
But it's a hack.
To go further add col-sm-12 class to <div class="discount">.
If you just change container-fluid to container it will work as well. But it will not span the whole width..
I have a new weird html/bootstrap/jquery problem... When the screen have a certain width (more than the nav-toggle width, but less than the normal width), all select boxes gets "disabled".
Check my jsFiddle here. Notice then on wide screens it works perfectly, but on medium sies it does not show, while om small it works good again.
Don't really know how to search for this problem, but the searches I have done have returned nothing of interrest. Hope you guys have a clue...
I have tested the latest Chrome, and IE, an interresting thing though is that earlier versions of IE works as expected (9 and 10), but Edge/11 does not work.
<div class="container kidliste" style="" id="HEADER_243">
<div class="row" onclick="clickMessageList(243);">
<div class="col-sm-3">
<div class="text-left" style="display: inline-block; font-size: 0.8em; margin-top: 7px; margin-left: 2px">
<i class="fa fa-clock-o"></i> 27.02.2014 - 23:31
</div>
<div class="text-right" style="display: inline-block; font-size: 0.8em;">
<i class="fa fa-phone"></i> 40055206
</div>
</div>
<div class="col-sm-7">
<div style="display: inline-block">
<p style="margin: 0; overflow: hidden; height: 1.2em; margin: 3px;">
<a style=" ">test pricegroup</a>
</p>
</div>
</div>
<div class="col-sm-2 text- text-right">
</div>
</div>
</div>
<div class="panel panel-default midliste" data-kid="243" id="MELDINGER_243" style="margin: 0 0 25px 80px">
<div class="panel" style="margin: 2px;padding: 0; margin-bottom: 5; padding-bottom: 0; color: #D17600">
<div class="row">
<div class="col-sm-2" style="padding: 2px; margin-left: 15px">
27.02.2014 - 23:31 </div>
<div class="col-sm-7" style="display: inline-block ; min-height: 3em;">
test pricegroup </div>
<div class="col-sm-2 pull-right text-right" style="margin-right: 25px;">
<a onclick="confirmSensur(1043, 243)" style="text-decoration: underline; font-size: 0.8em;">Sensurer melding!</a>
</div>
</div>
</div>
<div class="panel" style="margin: 2px;padding: 0; margin-bottom: 5; padding-bottom: 0; color: grey">
<div class="row">
<div class="col-sm-2" style="padding: 2px; margin-left: 15px">
27.02.2014 - 23:31 </div>
<div class="col-sm-7" style="display: inline-block ; min-height: 3em;">
Meldingen er mottatt og vil bli behandlet så snart som mulig. Mvh Legene på Høyden </div>
<div class="col-sm-2 pull-right text-right" style="margin-right: 25px;">
</div>
</div>
</div>
<div class="panel" style="margin: 2px;padding: 0; margin-bottom: 0; padding-bottom: 0">
<div class="row">
<div class="col-md-2" style="margin-left: 15px"></div>
<div class="col-md-8">
<form class="form-inline sendMessage" id="sendMessage_243" role="form" method="post" action="index2.php?page=Innboks&action=sendMelding">
<input type="hidden" name="kid" value="243">
<input type="hidden" name="type" value="0">
<div class="input-group">
<span class="input-group-addon btn btnStandardmelding" onclick="$(this).MessageWiz('#TEXT_243')">
Standardmelding <i class="fa fa-caret-right"></i>
</span>
<textarea id="TEXT_243" name="msg" class="form-control custom-control" rows="2" style="resize:none;"></textarea>
<span onclick="$(this).parents('form').submit()" class="input-group-addon btn">Send</span>
</div>
</form>
</div>
</div>
</div>
<div class="panel" style="margin: 2px;padding: 0; margin-bottom: 0; padding-bottom: 0">
<div class="row">
<div class="col-md-2" style="margin-left: 15px"></div>
<div class="col-md-8">
<form id="oppdaterStatus_243" action="index2.php?page=Innboks&action=oppdaterStatus" method="post" class="form-horizontal oppdaterStatus">
<input type="hidden" name="kid" value="243">
<div class="form-group container" style="margin-left: -15px">
<label class="control-label col-sm-1" for="innboks">Flytt:</label>
<div class="col-sm-3">
<select class="input-xlarge form-control" name="innboks" id="innboks">
<option value="2">Ferdig</option>
<option value="1" selected="">Ubehandlet
</option>
<option value="4">Diverse</option>
<option value="3">Arbeidsliste
</option>
</select>
</div>
<label class="control-label col-sm-1" for="tag">Tag:</label>
<div class="col-sm-3">
<select id="tag" class="input-xlarge form-control" name="tag">
<option value="0">-</option>
<option value="1">Morten Andre Pedersen</option>
<option value="2">Richard Hagen</option>
<option value="47">Ola Nordmann</option>
<option value="58">Test Testesen</option>
</select>
</div>
<div class="text-right col-md-3">
<button type="submit" class="btn btn-default">Lagre oppdatering</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
The "Lagre oppdatering" button is displaying as a block element and covers the floating elements to the left (so you can't click them). Changing its style from text-align: right to float: right fixes it. But if you want to display elements below, you're going to need to use clear: both eventually.