Bootstrap grid 3 items that each take up 33%
Tag : html , By : user178372
Date : March 29 2020, 07:55 AM
|
Need help in aligning items together in Bootstrap grid layout
Tag : html , By : Epora75
Date : March 29 2020, 07:55 AM
should help you out Right so my attempts at solving this are below, I'm not going to give you the same body of text because you can review that in the previous post.Here is the completed grid with all the parts you have requested, it's also laid out better. (Its not really device friendly as requested). <head>
<script data-require="jquery@*" data-semver="2.1.4" src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script data-require="angular.js@1.x" data-semver="1.4.3" src="https://code.angularjs.org/1.4.3/angular.js"></script>
<script data-require="ui-bootstrap@*" data-semver="0.13.0" src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.13.0.min.js"></script>
<link data-require="bootstrap-css@*" data-semver="3.3.1" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.2/angular.min.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="myApp" ng-controller="MainController">
<div class="container-fluid">
<div class="row">
<div class="hidden-xs col-sm-2 sidebar">
<div class="sidebar-nav" style="height:100% !important;min-height: 100% !important">
<div class="navbar navbar-custom" role="navigation">
<ul class="nav recommendation-nav">
<li class="active">
<a href="#/"><img style="padding-right: 5px" /> Side bar</a>
</li>
<li >
<a href="#/"><img style="padding-right: 5px" />Side bar</a>
</li>
<li >
<a href="#/"><img style="padding-right: 5px" />Side bar</a>
</li>
<li >
<a href="#/"><img style="padding-right: 5px" />Side bar 1</a>
</li>
<li >
<a href="#/"><img style="padding-right: 5px" />Side bar 2</a>
</li>
<li >
<a href="#/"><img style="padding-right: 5px"/>Side bar 3</a>
</li>
</ul>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-8 col-sm-offset-1 report-area">
<div class="panel panel-default">
<div class="panel-body">
<div class="row">
<div class="col-xs-12 col-sm-2">
<div class="dropdown" ng-show="!loadinga">
<button class="btn btn-default btn-block dropdown-toggle whiteDropdown" ng-disabled="loading" style="background-color: #fff; border-color: #C3C3C3" type="button" id="dropdownMenu1" aria-expanded="true">
{{dropDownTitle}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu scroll-menu nav" role="menu" aria-labelledby="dropdownMenu1">
<li ng-repeat="agent in agentListData">
<a role="menuitem" href="#" ng-click="">{{agent}}</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-12 col-sm-2">
<div class="dropdown " ng-show="!loadinga">
<button class="btn btn-default btn-block dropdown-toggle whiteDropdown" ng-disabled="loading" type="button" id="dropdownMenu2" aria-expanded="true">
{{dropDownAllTaskStatusTitle}}
<span class="caret"></span>
</button>
<ul class="dropdown-menu scroll-menu nav" role="menu" aria-labelledby="dropdownMenu2">
<li ng-repeat="task in taskStatusListData">
<a role="menuitem" href="#" ng-click="">{{task.title}}</a>
</li>
</ul>
</div>
</div>
<div class="col-xs-12 col-sm-2">
<div ng-show="!loadinga">
<input id="autoComplete" ng-model="selected" typeahead="task.name for task in taskList | filter:$viewValue | limitTo:20" class="form-control" typeahead-on-select="" placeholder="Search Tasks" typeahead-focus-first="true" ng-disabled="loading" type="text"
ng-blur="" />
</div>
</div>
<div class="col-xs-12 col-sm-4 divGridText" ng-show="!loadinga">
<input ng-model="isChecked" ng-click="checkboxClicked(isChecked)" ng-disabled="loading" type="checkbox" />
<label for="excludeMinutesStep" style="font-weight:normal">Exclude tasks running < </label>
<input id="excludeMinutesStep" min="0" max="10" ng-disabled="!isChecked || loading" ng-model="excludeValue" ng-change="" size="2" style="width:40px" type="number" /> minutes
</div>
<div class="col-xs-12 col-sm-1 divGridText" style="width:9.33%" ng-show="!loadinga" >
<input id="datalabels" ng-model="isLabelShowChecked" ng-click="" ng-disabled="loading" type="checkbox" />
<label for="datalabels" style="font-weight:normal;">Task Labels</label>
</div>
<div class="col-xs-1 col-sm-1 divGridImage" ng-show="!loadinga">
<button style="margin-left:3px" class="btn btn-custom" ng-click="">Reset</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
|
How to add gap between list items in Bootstrap grid?
Tag : html , By : Andrew L.
Date : March 29 2020, 07:55 AM
I hope this helps . It's best to not mix grid elements and style elements. Since your list requires it, you'll need to move some styles to the anchors rather than the list items: ul.list-group:after {
clear: both;
display: block;
content: "";
}
.list-group-item {
float: left;
border: 0 !important;
margin: 0px;
padding: 10px 0px;
}
a {
display: block;
padding: 5px;
border: 1px solid pink;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<div class="secondary-nav-container container">
<div class="row">
<ul class="list-group">
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
<li class="col-xs-3 list-group-item"><a href="#">One</a></li>
</ul>
</div>
</div>
|
Move bootstrap grid items
Tag : html , By : Puneet Madaan
Date : March 29 2020, 07:55 AM
hope this fix your issue Hide it on normal screen, Shows it on mobile view. Is that the legit way to achieve my requirement? <div class="hidden-sm hidden-md hidden-lg"></div>
|
Bootstrap Grid [2 items] in center
Tag : html , By : FuzzyHornet
Date : March 29 2020, 07:55 AM
wish help you to fix your issue I'm making a website using bootstrap and this is a screenshot of the grid from w3schools.com. In my website, Instead of having my profile picture on the left 1 of 2 and a bullet list on the right side on 2 of 2. <div class="row">
<div class="col-sm-3" style="visibility:hidden"></div>
<div class="col-sm-3" style="background-color:pink;">
picture here
</div>
<div class="col-sm-3" style="background-color:pink;">
bullets here
</div>
<div class="col-sm-3" style="visibility:hidden"></div>
</div>
|