Bootstrap Collapse conflict when expand one more item - css

I have made a section with bootstrap. With in this section i added two div for adding bootstrap Collapse there first one is working good but second one doesn't work. In second div it only open content but does not Collapse
https://dl.dropboxusercontent.com/u/188550847/problem/index.html

DEMO single and DEMO full
You have to set different ids and data-parent for each accordion.
change
<div class="panel-group" id="accordion">
to
<div class="panel-group" id="accordion-1">
and
<a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">
to
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapseTwo">
Hier is the full code:
<div class="container">
<div class="row">
<div class="section-title item_bottom text-center" style="opacity: 1; bottom: 0px;">
<div>
<span class="fa fa-cogs fa-2x"></span>
</div>
<h1 class="white">Why<span>Us?</span></h1>
</div>
<div class="col-lg-6 col-md-6 col-sm-12">
<h2 class="faqh">Our Strength</h2>
<!-- Nav tabs -->
<div class="panel-group" id="accordion-1">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapseOne" class="">
About Costing
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" style="height: 0px;">
<div class="panel-body">
<ul>
<li>No capital expense </li>
<li>No operations cost</li>
<li>Up to 60% cost savings when compared to current offshore costs</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapseTwo" class="">
How we operate?
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" style="height: 0px;">
<div class="panel-body">
<ul>
<li>Robust process. </li>
<li>Flexible model</li>
<li>Transparent operations</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapseThree" class="">
Team work
</a>
</h4>
</div>
<div id="collapseThree" class="panel-collapse collapse" style="height: 0px;">
<div class="panel-body">
<ul>
<li>Work single project at a time</li>
<li>Availability of resources with skills hard to find locally</li>
<li>Low employee attrition.</li>
<li>Employees with previous experience in working directly <br/> with international (UK, US & EU) clients</li>
<li>Complete management control over your dedicated resources. </li>
<li>Our engagement model allows you to treat and manage your <br/>resources as your own employees</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapsefour" class="collapsed">
Quality Assurance
</a>
</h4>
</div>
<div id="collapsefour" class="panel-collapse collapse">
<div class="panel-body">
<ul>
<li>As client has direct control over output or result of candidate, <br/> quality will be maintained as per standards at client end.</li>
<li>As quality people in terms of experience and skills are involved <br/>quality can be better controlled as per requirements</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapsefive" class="collapsed">
Messages
</a>
</h4>
</div>
<div id="collapsefive" class="panel-collapse collapse">
<div class="panel-body">
<ul>
<li>All outsourcing deals will be strictly confidential and not disclosed to any media.</li>
<li>NDA is signed.</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-1" href="#collapsesix" class="collapsed">
Anything More?
</a>
</h4>
</div>
<div id="collapsesix" class="panel-collapse collapse">
<div class="panel-body">
<li>Candidate is dedicated for single client and so can give 100% time and <br/>attention to a client company. This avoids delays in the work output.</li>
<li>Easy agreement process and terms. </li>
<li>Free from legal issues.</li>
<li>We provide pilot program of 2 months before large duration contract.</li>
</div>
</div>
</div>
</div>
</div>
<!-- Accordion 2 -->
<div class="col-lg-6 col-md-6 col-sm-12">
<h2 class="faqh">Question about us</h2>
<div class="panel-group" id="accordion-2">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-2" href="#one" class="collapsed">
Why I need to
</a>
</h4>
</div>
<div id="one" class="panel-collapse collapse" style="height: 0px;">
<div class="panel-body">
<ul>
<li>Cost benefits.</li>
<li>You can concentrate more on to increase customer base or other core business process.
</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-2" href="#Two" class="">
How much needed
</a>
</h4>
</div>
<div id="Two" class="panel-collapse in" style="height: auto;">
<div class="panel-body">
<ul>
<li>You can hire candidate for minimum of 4 months. But pilot program can be run for 1 month.</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-2" href="#Three" class="">
Is our service cost effective and qualified?
</a>
</h4>
</div>
<div id="Three" class="panel-collapse collapse" style="height: 0px;">
<div class="panel-body">
<ul>
<li>1. Yes! Our service is about 40% less costly compared to existing outsourcing service providers. You can hire 3 years experience person in general skills at an average cost of USD 1800$ per month.</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-2" href="#four">
Is there project manager for each project?
</a>
</h4>
</div>
<div id="four" class="panel-collapse in" style="height: auto;">
<div class="panel-body">
<ul>
<li>o For each outsourcing project where more than 3 resources are working, we provide dedicated project manager at free of cost. He will be in contact with client as well as have responsibility of managing entire project. </li>
<li>This project manager cost will be bearded by Nimetler Technologies.In all other cases, Nimetler in house project manager will. </li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-2" href="#five">
How you work effectively with clients?
</a>
</h4>
</div>
<div id="five" class="panel-collapse in" style="height: auto;">
<div class="panel-body">
<ul>
<li>A dedicated or shared project manager to manage work of candidates.</li>
<li>Use of cost-effective communication tools.</li>
<li>Easy-to-use project management tools for instant access to the status of your project.</li>
</ul>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" data-parent="#accordion-2" href="#six">
Anything More?
</a>
</h4>
</div>
<div id="six" class="panel-collapse collapse">
<div class="panel-body">
<h3>If candidate not found result oriented during job what action will be taken?</h3>
<ul>
<li>If client is not satisfied with any candidates’ work he will be immediately replaced with alternate candidate. </li>
<li>Nimetler will not charge client on the day complaint is officially registered in given format. Also candidate will be asked to stop work.</li>
<li>In the case client can’t stop work due to certain reason, but complaint has been registered, Nimetler will charge 50% of amount negotiated till new candidate is recruited. </li>
</ul>
<hr/>
<h3>What precaution you take to tackle such situations?</h3>
<ul>
<li>During interview process we select at least 2 candidates. Out of it second person is backup resource. So work will not get affected. </li>
</ul>
<hr/>
<h3>Who manages candidates?</h3>
<ul>
<li>As all candidates are our employees, it is our responsibility to manage them. Client need to just provide assignment and check work done. </li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Related

Column doesnt take the full hight

I have a problem:
as you can see in the picture, the problem is, that the column doesnt take the full hight. On the left side is what i got and on the right is what i want. Maybe you guys can help me out. Here is the source code which leads to the image on the left. I have searched for a solution but unfortunatelly nothing fits my source code.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div>
<div class="row m-auto">
<div class="col-md-12 p-0">
<div>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
Navbar w/ text
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarText"
aria-controls="navbarText"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">
Home <span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Features
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Pricing
</a>
</li>
</ul>
<span class="navbar-text">Navbar text with an inline element</span>
</div>
</nav>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-4 bg-warning">
<!-- this is the left side -->
<div>
<div class="row m-1">
<div class="col-md-11">
Chats
</div>
<div class="col-md-1">
<i class="fas fa-plus-circle"></i>
</div>
</div>
<div class="row mb-2">
<div class="col-md-12">
<form class="form-inline" style={{ height: "0%", width: "100%", paddingLeft: "0", paddingRight: "0", paddingTop: "8px" }}>
<input class="form-control mr-sm-1" style={{ width: "80%" }} type="search" placeholder="Suchen" aria-label="Search" />
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Suchen</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="list-group">
<div>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start" style={{marginTop: "7.5px", marginBottom: "7.5px"}}>
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small>3 days ago</small>
</div>
<div class="row">
<div class="col-md-11">Donec id elit non mi porta...
</div>
<div class="col-md-1">
<span class="badge badge-primary badge-pill text-right">5</span>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8 bg-primary">
<div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-success">
<div class="row">
<!-- it should be the full width but unfortunatelly a scrollbar appears because of this section right here... -->
<div class="col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2">
<img src="..." class="image-head-chat" alt="Responsive image" />
</div>
<div class="col-8 col-sm-8 col-md-8 col-lg-8 col-xl-8">
Text
</div>
<div class="col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2">
Icons
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-success">
<!-- Should be in the middle and full screen (like the area where you and another person have a conversation-->
Message
</div>
</div>
<div class="row">
<!-- should be at the bottom of the Screen like in everyother Chat-->
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-success">
Text-Input and Button
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
This question is basically the same as this and this, but the overly complex, nested and incorrect Bootstrap grid structure you're using make it almost impossible to make the height work as expected.
If you simplify the markup as recommended in your other questions, the height issue is resolved using the flexbox grow and shrink utilities as explained in the Bootstrap docs...
"Use .flex-grow-* utilities to toggle a flex item’s ability to grow to
fill available space. "
Using vh-100, flex-grow-0, flex-grow-1, flex-column, etc...
<div class="container-fluid d-flex flex-column vh-100">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
...
</nav>
<div class="row flex-grow-1">
<div class="col-md-4 bg-warning">
<!-- this is the left side -->
</div>
<div class="col-md-8 bg-primary d-flex flex-column flex-grow-1">
<div class="row flex-column flex-fill">
<div class="col bg-success flex-grow-0">
<div class="row">
<!-- it should be the full width but unfortunatelly a scrollbar appears because of this section right here... -->
</div>
</div>
<div class="col bg-info flex-fill">
<!-- Should be in the middle and full screen (like the area where you and another person have a conversation--> Message </div>
<!-- should be at the bottom of the Screen like in everyother Chat-->
<div class="col bg-success flex-grow-0"> Text-Input and Button </div>
</div>
</div>
</div>
</div>
https://codeply.com/p/iP18GJ1ZdU
It can be done through display: flex. It is necessary to set height: 100% to take available height.
So I've edited some classes and add some classes.
The complete stackblitz example can be seen here
An example:
<div class="box">
<div class="row box m-0">
<div class="col-md-12 p-0 foo-flex">
<div>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
Navbar w/ text
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarText"
aria-controls="navbarText"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">
Home <span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Features
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Pricing
</a>
</li>
</ul>
<span class="navbar-text">Navbar text with an inline element</span>
</div>
</nav>
</div>
<div class="container-fluid foo-flex-item">
<div class="row h-100">
<div class="col-md-4 bg-warning">
<div>
<div class="row m-1">
<div class="col-md-11">
Chats
</div>
<div class="col-md-1">
<i class="fas fa-plus-circle"></i>
</div>
</div>
<div class="row mb-2">
<div class="col-md-12">
<form class="form-inline" style="height: 0%; width: 100%; paddingLeft: 0; paddingRight: 0; paddingTop: 8px;">
<input class="form-control mr-sm-1" style="width: 80%;" type="search" placeholder="Suchen" aria-label="Search" />
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Suchen</button>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="list-group">
<div>
<a href="#" class="list-group-item list-group-item-action flex-column align-items-start" style="7.5px; marginBottom: 7.5px;">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">List group item heading</h5>
<small>3 days ago</small>
</div>
<div class="row">
<div class="col-md-11">Donec id elit non mi porta...
</div>
<div class="col-md-1">
<span class="badge badge-primary badge-pill text-right">5</span>
</div>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-8 bg-primary">
<div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12">
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-success">
<div class="row">
<div class="col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2">
<img src="..." class="image-head-chat" alt="Responsive image" />
</div>
<div class="col-8 col-sm-8 col-md-8 col-lg-8 col-xl-8">
Text
</div>
<div class="col-2 col-sm-2 col-md-2 col-lg-2 col-xl-2">
Icons
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-success">
Message
</div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 bg-success">
Text-Input and Button
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- <script src=" index.js"></script> -->
<link rel="stylesheet" type="text/css"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script type="text/javascript" src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js">
</script>

is there any way element overflow its parent

i want to overflow an element its parent context in css(bootstrap). is there any way ?
in my case code is below. I want the description fields to cover the whole row. but its in col-md-4 therefore not cover. Is there a way to do what i want. My English is bad, I'm sorry.
Edit:
the design i want to make
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.0/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js#1.16.0/dist/umd/popper.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
item 1
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="panel" aria-labelledby="headingOne">
<div class="panel-body">
Description 1
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
item 2
</a>
</h4>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="panel" aria-labelledby="headingTwo">
<div class="panel-body">
description 2
</div>
</div>
</div>
</div>
</div>
I think you have to separate description (panel content) and put it below the tabs (headings)
And after all I think in this case you need Bootstrap's accordion approach
Try this out:
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.0/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js#1.16.0/dist/umd/popper.min.js"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" />
<div class="row">
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true"
aria-controls="collapseOne">
item 1
</a>
</h4>
</div>
</div>
</div>
<div class="col-md-4">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingTwo">
<h4 class="panel-title">
<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"
aria-expanded="false" aria-controls="collapseTwo">
item 2
</a>
</h4>
</div>
</div>
</div>
</div>
<div id="collapseOne" class="panel-collapse collapse" role="panel" aria-labelledby="headingOne">
<div class="panel-body">
Description 1
</div>
</div>
<div id="collapseTwo" class="panel-collapse collapse" role="panel" aria-labelledby="headingTwo">
<div class="panel-body">
description 2
</div>
</div>

Angular bootstrap how to make card of a card-deck to be active when routerlinkactive is true

I am using Angular 7 + Bootstrap. I am using bootstrap card deck to create 3 menus.
When the routerlinkactive is active, I want to style the border for that particular card, where the link is available.
<div class="container-fluid">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow"> <!-- want to style at this level when link is active -->
<div class="card-header pb-2">
<h4 class="my-0 font-weight-normal">Menu 1</h4>
</div>
<div class="card-body">
<a routerLinkActive="active" routerLink='my-courses' class="link-unstyled">
<i class="fas fa-tasks fa-9x"></i></a>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-header pb-2">
<h4 class="my-0 font-weight-normal">Menu 2</h4>
</div>
<div class="card-body">
<a routerLinkActive="active" routerLink='completion-certs' class="link-unstyled">
<i class="fas fa-award fa-9x"></i></a>
</div>
</div>
<div class="card mb-4 box-shadow">
<div class="card-header pb-2">
<h4 class="my-0 font-weight-normal">Menu 3</h4>
</div>
<div class="card-body">
<a routerLinkActive="active" routerLink='self-certification' class="link-unstyled">
<i class="fas fa-book-reader fa-9x"></i></a>
</div>
</div>
</div>
</div>
You can use something like this.
<a #rla="routerLinkActive" routerLinkActive="active" routerLink='my-courses' class="link-unstyled">.... </a>
and on the card div you can use [class.active-card]="rla.isActive"

Framework7 Side Panels not working

I'm developing an app mainly in HTML5/CSS/JS and I'm using framework7. Following the tutorials and all the documentation available I can't make a side panel appear... What am I doing wrong?
<body>
<div class="panel-overlay">
<div class="panel panel-left panel-reveal">
<div class="content-block">
<p>Menu de Opções</p>
<p>Fechar Menu</p>
</div>
</div>
</div>
<div class="views">
<div class="view view-main">
<div class="pages">
<div data-page="home" class="page navbar-fixed">
<div class="navbar">
<div class="navbar-inner">
<div class="left">
<a href="#" class="link icon-only open-panel" data-panel="left">
<i class="icon icon-bars"></i>
</a>
</div>
<div class="center">Home</div>
<div class="right"> <a href="#" class="link icon-only">
<i class="icon icon-back"></i></a>
</div>
</div>
</div>
<div class="page-content">
<div class="content-block">
<p>Menu</p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
I'm testing on Chrome, but nothing is happening... It is also not working on IE

bootstrap grid in widescreen mode has incorrect div offset

I am working on bootstrap code that looks correct on a mobile device but the medieval music div is oddly placed and the pedagogy div is too far down. They should make a 2x2 grid. Can anyone spot why this is happening?
<div class="view-container">
<!-- ngView: --><div data-ng-view="" class="view-frame ng-scope"><!-- ngInclude: --><div data-ng-include="" src="'partials/navbar_sub.html'" class="ng-scope"><!-- ugh...code dup...need the bootstrap attribute in navbar for mainpage -->
<!-- and no scrollspy otherwise -->
<!-- merge this with other navbar, as otherwise they are the same -->
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top navbar-shrink ng-scope">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#page-top">The LilyPond Consortium</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
</li>
<li class="hidden">
</li>
<li>
Services
</li>
<li>
Members
</li>
<li>
Projects
</li>
<li>
Donations
</li>
<li class="hidden">
</li>
<li class="hidden">
</li>
<li>
Log in
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
</div>
<div ui-view="header" autoscroll="true" class="ng-scope"></div>
<section id="channels" class="bg-light-gray ng-scope">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Channels</h2>
</div>
</div>
<div class="row">
<!-- ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Academic Musicology</h4>
<h5 class="ng-binding">Moderator : Urs Liska</h5>
<p class="text-muted ng-binding">
The Academic Musicology channel coordinates efforts between universities and publishers to facilitate the creation of texts used in academic musicology such as articles, books and critical editions.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Contemporary Music</h4>
<h5 class="ng-binding">Moderator : Foo Bar</h5>
<p class="text-muted ng-binding">
The Contemporary Music channel coordinates the creation of contemporary music symbols and structures useable in LilyPond.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Medieval Music</h4>
<h5 class="ng-binding">Moderator : John Doe</h5>
<p class="text-muted ng-binding">
Something about medieval music.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Pedagogy</h4>
<h5 class="ng-binding">Moderator : Florence Nightengale</h5>
<p class="text-muted ng-binding">
The pedagogy channel helps pedagogues improve music theory, composition, history and education snippets created using LilyPond.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels -->
</div>
</div>
</section>
</div>
</div>
jsfiddle: http://jsfiddle.net/mikesol/chru1awL/1/
This is a simple issue most people don't think of. Your columns should start a new line on a new row if the content is variable. Because the length of the left column is longer than the right, the next line can't go all the way to the left. Alternatively, you could have a height defined or use jQuery to match height.
Here's the markup solution with Bootstrap:
<div class="row">
<div class="col-sm-6 portfolio-item ng-scope">
content
</div>
<div class="col-sm-6 portfolio-item ng-scope">
content
</div>
</div>
<div class="row">
<div class="col-sm-6 portfolio-item ng-scope">
content
</div>
<div class="col-sm-6 portfolio-item ng-scope">
content
</div>
</div>
I would wrap each visual row on desktops into .row and that will solve your problem:
http://jsfiddle.net/shannabarnard/Lt203vxs/1/
This also means no added script or css, just standard Bootstrap formatting.
<section id="channels" class="bg-light-gray ng-scope">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Channels</h2>
</div>
</div>
<div class="row">
<!-- ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Academic Musicology</h4>
<h5 class="ng-binding">Moderator : Urs Liska</h5>
<p class="text-muted ng-binding">
The Academic Musicology channel coordinates efforts between universities and publishers to facilitate the creation of texts used in academic musicology such as articles, books and critical editions.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Contemporary Music</h4>
<h5 class="ng-binding">Moderator : Foo Bar</h5>
<p class="text-muted ng-binding">
The Contemporary Music channel coordinates the creation of contemporary music symbols and structures useable in LilyPond.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels -->
</div>
<div class="row">
<div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Medieval Music</h4>
<h5 class="ng-binding">Moderator : John Doe</h5>
<p class="text-muted ng-binding">
Something about medieval music.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Pedagogy</h4>
<h5 class="ng-binding">Moderator : Florence Nightengale</h5>
<p class="text-muted ng-binding">
The pedagogy channel helps pedagogues improve music theory, composition, history and education snippets created using LilyPond.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels -->
</div>
</div>
You need to start a new row for medieval music and pedagogy
<div class="view-container">
<!-- ngView: --><div data-ng-view="" class="view-frame ng-scope"><!-- ngInclude: --><div data-ng-include="" src="'partials/navbar_sub.html'" class="ng-scope"><!-- ugh...code dup...need the bootstrap attribute in navbar for mainpage -->
<!-- and no scrollspy otherwise -->
<!-- merge this with other navbar, as otherwise they are the same -->
<!-- Navigation -->
<nav class="navbar navbar-default navbar-fixed-top navbar-shrink ng-scope">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#page-top">The LilyPond Consortium</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li class="hidden">
</li>
<li class="hidden">
</li>
<li>
Services
</li>
<li>
Members
</li>
<li>
Projects
</li>
<li>
Donations
</li>
<li class="hidden">
</li>
<li class="hidden">
</li>
<li>
Log in
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
</div>
<div ui-view="header" autoscroll="true" class="ng-scope"></div>
<section id="channels" class="bg-light-gray ng-scope">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading">Channels</h2>
</div>
</div>
<div class="row">
<!-- ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Academic Musicology</h4>
<h5 class="ng-binding">Moderator : Urs Liska</h5>
<p class="text-muted ng-binding">
The Academic Musicology channel coordinates efforts between universities and publishers to facilitate the creation of texts used in academic musicology such as articles, books and critical editions.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Contemporary Music</h4>
<h5 class="ng-binding">Moderator : Foo Bar</h5>
<p class="text-muted ng-binding">
The Contemporary Music channel coordinates the creation of contemporary music symbols and structures useable in LilyPond.
</p>
<h5>Memberss ...</h5>
</div>
</div>
<div class="row">
</div><!-- end ngRepeat: channel in channels --><div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Medieval Music</h4>
<h5 class="ng-binding">Moderator : John Doe</h5>
<p class="text-muted ng-binding">
Something about medieval music.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels -->
<div data-ng-repeat="channel in channels" class="col-sm-6 portfolio-item ng-scope">
<!-- change project pages to angular... -->
<a href="#portfolioModal2" class="portfolio-link" data-toggle="modal">
<img data-ng-src="http://placehold.it/400x200" class="img-responsive" alt="" src="http://placehold.it/400x200">
</a>
<div class="portfolio-caption">
<h4 class="ng-binding">Pedagogy</h4>
<h5 class="ng-binding">Moderator : Florence Nightengale</h5>
<p class="text-muted ng-binding">
The pedagogy channel helps pedagogues improve music theory, composition, history and education snippets created using LilyPond.
</p>
<h5>Memberss ...</h5>
</div>
</div><!-- end ngRepeat: channel in channels -->
</div>
</div>
</section>
</div>
</div>

Resources