If its only for styling purposes, and you don't want to use a Script, you can do it that way..
lets say that you want to style the elements between .c3
and .c6
.c3 ~ div
{
/*special styling*/
}
div, .c6 ~ div
{
/*normal styling*/
}
you can see it in action Here