CSS -horizontal tab style for child elements

0 votes
153 views
added Jan 30, 2019 in CSS by LC Marshal Captain (25,790 points)
.tab_btn {
	background: #fff;
	color: $color_dark_new;
	border: 1px solid $color_highlight;
	padding: 15px;
	font-weight: 500;
    font-size: 1.5rem;
    text-align: center;
    &:first-child,
    &:nth-child(2) { 
    	border-right: 0;
    }
	&_active {
		color: #fff;
		background: $color_highlight;
	}
}

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...