.
Seen
.
23 times
.
This right here alters all the squares to pink.
https://jsfiddle.net/7cye4hfu/1/
If I intended to transform among the pink squares to a various shade, just how would certainly I do that?
channel-browser __ channel-grid-item:: after {web content:””; placement: outright; inset: 0; background-color: pink;}
. channel-browser __ channel-grid
{display screen: grid; space: 16px; grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr)); margin: 0; cushioning: 0; boundary: 0; font-size: 100%; font style: acquire; vertical-align: standard;
}
.
channel-browser __ channel-grid-item {placement: family member;
}. content-item-container– aspect-square.
horizontal-content-browser __ content-item {
padding-top: 100 %;}.
horizontal-content-browser __ content-item. horizontal-content-browser __ fallback-image,
. horizontal-content-browser __ content-item.
responsive-image-component {
placement: outright; top: 0; left: 0; size: 100%; elevation: vehicle; border-radius: 4px; background-color: # 1a1a1a;- webkit-box-shadow: 0 2px 3px 0 rgb( 0 0 0/ 20%); box-shadow: 0 2px 3px 0
< div course=" channel-browser __ networks channel-browser __ channel-grid content-item-container content-item-container-- aspect-square" >. < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item> . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable box-color-blue" > . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item
<-- network noticeable box-color-yellow" > . < div course=" horizontal-content-browser __ content-item content-item
. < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable" >. < img size=">
<280">elevation=” 280″ src=” https://via.placeholder.com/465×465″ course=” responsive-image-component” > . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable" >. < img size=">
<280">elevation=” 280″ src=” https://via.placeholder.com/465×465″ course=” responsive-image-component” > . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable" >. < img size=">
<280">elevation=” 280″ src=” https://via.placeholder.com/465×465″ course =” responsive-image-component” > . < div course=" horizontal-content-browser
__ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable" >. < img size=" 280" elevation =" 280" src=
" https://via.placeholder.com/465x465" course=" responsive-image-component" > . (* )mplungjan
171 silver badges
229 229 bronze badges
.
.
asked 21 minutes earlier
.
Lots of means.
Right here are 2 channel-browser __ channel-grid-item. box-color-red:: after {background-color: red;}. channel-browser __ channel-grid-item: nth-of-type( 4 ):: after {
background-color: environment-friendly;
}
channel-browser __ channel-grid-item:: after {web content: “”; placement: outright; inset: 0;
background-color: pink;
}
. channel-browser __ channel-grid-item. box-color-red:: after {
background-color: red;}
. channel-browser __ channel-grid-item: nth-of-type( 4):: after {background-color: environment-friendly;}. channel-browser __ channel-grid {
display screen: grid; space: 16px; grid-template-columns: repeat(
auto-fill, minmax( 200px, 1fr)); margin: 0; cushioning: 0; boundary: 0; font-size: 100%; font style: acquire; vertical-align: standard;}. channel-browser __ channel-grid-item {placement: family member;}. content-item-container– aspect-square. horizontal-content-browser __
content-item {
padding-top: 100 %;
}
. horizontal-content-browser
__ content-item. horizontal-content-browser __ fallback-image,
. horizontal-content-browser __ content-item
.
responsive-image-component {
placement: outright;
top: 0; left: 0; size
: 100 %; elevation: vehicle; border-radius: 4px;
background-color: # 1a1a1a;- webkit-box-shadow: 0 2px 3px 0 rgb( 0 0 0/ 20 %); box-shadow: 0 2px 3px 0 rgb( 0 0 0/ 20 %);}
.
box-color-red {
history: red;
border-radius:<4px;}. box-color-blue {history: blue;}. box-color-yellow {history: yellow;}
<. box-color-green {history: environment-friendly;}
< div course =" channel-browser __ networks channel-browser __ channel-grid content-item-container content-item-container-- aspect-square" >. < div course="><> .
<< div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable box-color-blue"><> .
<< div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable box-color-yellow><" > . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable box-color-green" > . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable" >. < img size=" 280" elevation=" 280" src =" https://via.placeholder.com/465x465" course=" responsive-image-component">> . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item. < img size=" 280" elevation=" 280" src=" https://via.placeholder.com/465x465" course=" responsive-image-component">> . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item. < img size=" 280" elevation=" 280" src=" https://via.placeholder.com/465x465" course=" responsive-image-component">> . < div course=" horizontal-content-browser __ content-item content-item channel-browser __ channel-grid-item content-item-- network noticeable" >. < img size=" 280" elevation=" 280" src=" https://via.placeholder.com/465x465" course=" responsive-image-component" > .
. addressed(>
<*) 11>minutes earlier
.
27 27 gold badges 171
171 silver badges 229
229 bronze badges
. Insted of:
box-color-red {
history
: red; border-radius: 4px;}
.
box-color-blue {
history: blue;
}
. box-color-yellow {
history: yellow;
}
. box-color-green {history: environment-friendly;}
Attempt utilizing:
box-color-red:: after {history: red; border-radius: 4px;}
. box-color-blue:: after
{
history: blue;}
. box-color-yellow:: after {
history: yellow;}
. box-color-green:: after {
history: environment-friendly;}
. addressed 7 minutes earlier
.
1 1 bronze badge(* )
. Kodd
.