Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to make a web page with bootstrap's jumbotron. I created 2 column jumbotron. I want different background color for both the rows of jumbotron, something similar to the picture shown(just a sample)


example image: http://i.stack.imgur.com/i8C93.png
the code is:

    <div class="jumbotron"> 
    <div class="container">
     <div class="row"> 
    <div class="col-lg-6">
     <h2>This is row 1 of jumbotron</h2> 
    </div> 
    <div class="col-lg-6"> 
    <h2>This is row 2 of jumbotron</h2>
     </div> 
    </div> 
    </div>
     </div>


Any solution for this? Thanks in advance!
Posted

1 solution

Using CSS
------------
CSS
col-lg-6:nth-child(1) {
  background: orange;
}
col-lg-6:nth-child(2) {
  background: blue;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900