Jobin Jobin - 1 month ago 8
CSS Question

how to get the container inside a div

I have used the below code to get the container for the

<div id="dvContainer" class="page-container">
<header class="clearfix">
</header>
</div>


I get the container using below code

var container = '#dvContainer header';


How can I get the container which is a div

<div id="dvContainer">
<div class="content-wrapper">
<div>
</div>
</div>
</div>


here I want to get the container

how do i get this?

Answer

I think you need this

var container = '#dvContainer .content-wrapper';