Hi there Abhisheknjain,

unfortunately, as far as I know, your requirement cannot be achieved with CSS.

There is no relationship between elements in your #main div and those in your
#content div.

Javascript would seem to be the appropriate method to use in this instance.

coothead