CSS- Select nth td of a tr of table

.inline-table tr td:nth-child(3) {
    text-align:right;
}
<table>
    <tbody id="SearchResultTableBody">
        <tr>
            <td>
                <img />
            </td>

            <td>
            </td>

            <td>
                <div>
                    <img />
                </div>

                <div>
                    <table class="inline-table">
                        <tr>
                            <td></td>
                            <td></td>
                            <td></td> <!--only this'll be selected-->
                        </tr>
                    </table>
                </div>

                <div>
                    <div>
                        <div>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </tbody>
</table>

CSS- Select only direct nth child(s)

#SearchResultTableBody > tr > td > div:nth-child(3) {
    margin-left:10px;
}
<table>
    <tbody id="SearchResultTableBody">
        <tr>
            <td>
                <div> <!--This div will not be selected-->                   
                </div>

                <div> <!--This div will not be selected--> 
                </div>

                <div> <!--Only this div will be selected-->
                    <div> <!--This div will not be selected--> 
                        <div> <!--This div will not be selected--> 
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </tbody>
</table>

CSS- Select only direct child(s)

#TBody > tr > td > div {
    float: left;
}
<table>
    <tbody id="TBody">
        <tr>
            <td>
                <img />
            </td>

            <td>
            </td>

            <td>
                <div> <!--This div will be selected-->
                    <img />
                </div>

                <div> <!--This div will be selected-->
                    <table class="inline-table">
                        <tr>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                </div>

                <div> <!--This div will be selected-->
                    <div> <!--This div will not be selected-->
                        <div> <!--This div will not be selected-->
                        </div>
                    </div>
                </div>
            </td>
        </tr>
    </tbody>
</table>