html - CSS for first-child is not getting applied -


i need increase height of 1st panel in ng-repeat

code

<div class="panel panel-default panel-height" ng-repeat="candidateinfo in acandidatedetails"> <div class="panel-heading">     <div class="row">         <div class="col-xs-1">             <a style="cursor:pointer">                 {{candidateinfo.name}}             </a>         </div>     </div>     <div stop-watch time="xyz" name="candidateinfo.name" time-of-interview="candidateinfo.doi" ></div> </div> 

here have applied css class .panel-height below

.panel-height:first-child {     height: 500px; } 

here css not getting applied , cannot figure out im going wrong . appreciated.

add class 'panel-heading' when div satisfies $first , add height class name 'firstchild'.

<div class="panel panel-default panel-height" ng-repeat="candidateinfo in acandidatedetails">  <div class="panel-heading" ng-class="{'firstchild':$first}"> <!-- try line -->      <div class="row">          <div class="col-xs-1">              <a style="cursor:pointer">                  {{candidateinfo.name}}              </a>          </div>      </div>      <div stop-watch time="xyz" name="candidateinfo.name" time-of-interview="candidateinfo.doi" ></div>  </div>


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -