Search
 
SCRIPT & CODE EXAMPLE
 

CSS

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>
Comment

PREVIOUS NEXT
Code Example
Css :: .row bootstrap 
Css :: css overflow 
Css :: backdrop filter all properties 
Css :: how to draw rhombus in css 
Css :: background single line property css 
Css :: in a form how to remove the input outerline color or shadow 
Css :: ellipsis 
Css :: html checkbox change styling 
Css :: for...of...loop and NodeLists 
Css :: CSS line-height values 
Css :: button material ui 
Css :: css change class name start with 
Css :: Change the color of anchor tags 
Css :: nativescript hr 
Css :: animate.css 
Css :: remove black border css 
Css :: body{text-align: center;} 
Css :: transition for css 
Css :: function for style your theme wordpress php 
Css :: how to comment in css 
Css :: css display 
Css :: for...of...loop 
Css :: how to change paragraph text color to Red css 
Css :: change option tag css 
Css :: fluid typography 
Css :: easyui datagrid header field color 
Css :: what is display inline 
Css :: using tinymce with tailwind css 
Css :: css how to stop screen from left and right 
Css :: css assign multiple classes to one element 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =