Apply css to a div and class

Viewed 5943

How to put external CSS for the given codes as it is a div with a class:

<div class="adv_post_container nolinks" id="activity-post-container" style="display: block;">

is it

#activity-post-container.adv_post_container.nolinks

OR

#activity-post-container .adv_post_container.nolinks

Or is there another way?

By the way, what is this called? I know div inside div is called "nested." What is this called?

3 Answers
Related