Assuming you are referring to sibling elements when mentioning adjacent elements, if you are talking about parent-child elements, please refer to the answer by User123. With that said...
Directly targeting the first element
using CSS selectors alone may not be possible. However, you can apply styles to all elements except the first one. One approach is to define the styles for the first element
and then override them for the rest of the elements. Here's how you can do it:
.element {
...styles for the first element...
}
.element ~ .element {
...override styles for the subsequent elements...
}
The symbol (~) between the two ".element" classes is known as the general sibling selector. For more information on this selector, you can visit the CSS selectors specification.