I've been struggling to customize the background color of my MaterializeCSS tabs content by referring to their official documentation:
If you visit the website, you'll notice that the default tabs have a white background, while the 'Test 1', 'Test 2', etc. content has a grayish color similar to the rest of the site. I want to replicate this design but haven't been successful so far. Every time I attempt to tweak the CSS, it affects the appearance of the tabs themselves. I need assistance with correctly setting up the CSS for this. Below is the code snippet:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/css/materialize.min.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<!-- Tabs -->
<div class="row">
<div class="col s12">
<ul class="tabs">
<li class="tab col s3"><a class="active" href="#test1">Tab 1</a></li>
<li class="tab col s3"><a href="#test2">Tab 2</a></li>
<li class="tab col s3"><a href="#test3">Tab 3</a></li>
<li class="tab col s3"><a href="#test4">Tab 4</a></li>
<li class="tab col s3"><a href="#test5">Tab 5</a></li>
</ul>
</div>
<div id="test1" class="col s12">Test 1</div>
<div id="test2" class="col s12">Test 2</div>
<div id="test3" class="col s12">Test 3</div>
<div id="test4" class="col s12">Test 2</div>
<div id="test5" class="col s12">Test 3</div>
</div>
<!-- Init Tabs -->
<script type="text/javascript">
$(document).ready(function(){
$('ul.tabs').tabs();
});
</script>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/js/materialize.min.js"></script>
</body>
</html>
I've attempted modifying various classes and IDs like 'test1', which unfortunately leads to conflicts with the lower portion of the tabs.
Any help would be greatly appreciated.