general sibling selector
/* The general sibling combinator (~) separates
two selectors and matches the second element
only if it follows the first element
(though not necessarily immediately),
and both are children of the same parent element. */
/* Paragraphs that are siblings of and
subsequent to any image will be red */
img ~ p {
color: red;
}
<img src="myimg.png"/>
<p>This will be red!</p>
Also in CSS:
- bootstrap badge color
- word spacing css
- change color select arrow css cf7
- static css is not fetching style in django
- how to make a button grow in css
- css text line in middle
- css rounded corners
- button width based on text csss
- nice button css
- scss gradient mixin
- truncate text css
- how to link fonts css
- media query change button text
- how do i make a div full width with css
- how to change height font css
- css background image responsive
- css select all elements except last css
- style file input button css
- css translate3d
- how do i link my css to my html
- css system default font
- how to get random images
- bootstrap font size
- css flex content right