Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

styled components last child

const Text = styled.p`
    font-size: 12px;
    color: blue;
    &:nth-child(3) {
        margin-bottom: 20px;
        color: red !important;
    }
`;
 
PREVIOUS NEXT
Tagged: #styled #components #child
ADD COMMENT
Topic
Name
7+6 =