Home >Web Front-end >CSS Tutorial >How to Style Child Components in Vue.js Using CSS Selectors?
In the context of Vue.js, granular styling of child components can be achieved using specific CSS selectors. However, issues may arise during implementation.
Vue 2.0 - 2.6
To penetrate child components and select nested elements, you can employ either ::v-deep (with Sass) or >>> (without Sass) in your CSS rules, as follows:
Sass:
::v-deep .child-class { background-color: #000; }
Other CSS:
>>> .child-class { background-color: #000; }
Note that the