I want to apply Css on class fancybox-inner which is the last parent of class main-content. I dont want to directly define the class and apply properties. Because I have multiple classes with the same name i.e fancybox-inner. So I want to target fancybox-inner on behalf of main-content.
HTML:
<div class="fancybox">
<div class="fancybox-inner">
<div class="main-content">
<!--- Some Content ------>
</div>
</div>
<div>
What I have tried so far :
.main-content < .fancybox-inner {
width:1000px !important;
}