JSFiddle - React, Tailwind, and code Playground

HTML

<div id="NavBar">
                
                <div id="Mainbutton">
                <center><h2 style="margin-top: 7px;"> Main </h2></center>
                </div>
                
                <div id="topic1button">
                <center><h2 style="margin-top: 7px;"> Skiing </h2></center>
                </div>
                
                <div id="topic2button">
                <center><h2 style="margin-top: 12px;"> Movies </h2></center>
                </div>
                
                
        </div>
        
        <div id="Main">
                
                <div id="IntroImage">
                
                </div>
                
                <div id="Title">
                        <h2 id="Titlemain"> TYLER POTTS</h2>
                </div>
                <div class="container">
                <div id="SubTopicNav">
                        
                        <div id="subTopicNav1">
                                <center><h2>About Me</h2></center>
                                 <div id="SubTopicInfo1">
                                <h1> Test </h1>                            
                                </div>
                        </div>
                       
                        
                        <div id="subTopicNav2">
                                <center><h2>Skiing</h2></center>
                              <div id="SubTopicInfo2">
                                  skiiiiiiii
                        
                        </div>
                        </div>
                        
                        <div id="subTopicNav3">
                                <center><h2>Movies</h2></center>
                               <div id="SubTopicInfo3">
                        movieeee
                        </div>
                        </div>
                        
                </div>
                
            </div>                               
                <div...

CSS

#NavBar
{
width: 750px;
height: 40px;
background-color: white;
margin: 0 auto;
border-top: 5px solid #FFD640;
border-bottom: 5px solid #FFD640;
}


#topic2button
{
width: 100px;
height: 45px;
margin-top:-50px;
margin-left: 215px;
float:left;
}

#topic2button:hover
{
background-color: #FFD640;
}

#Mainbutton
{
width: 100px;
height: 45px;
margin-top:;
margin-left: 315px;
float:left;
}

#Mainbutton:hover
{
background-color: #FFD640;
}

#topic1button
{
width: 100px;
height: 45px;
float: left;
}

#topic1button:hover
{
background-color: #FFD640;
}

#Main
{
width: 750px;
height: 1000px;
margin: 0 auto;
background-color: white;
}

#IntroImage
{
width: 750px;
height: 150px;
background-image:url("http://skiersedgeproshop.com/wp/wp-content/uploads/2013/11/snow-mountain-ski1.jpg")
}

#IntroImage:hover
{
opacity: 0.8;
}

#Title
{
width: 500px;
height: 40px;
border-top: 5px solid #FFD640;
border-bottom: 5px solid #FFD640;
margin:0 auto;
margin-top: 10px;
}
        
#Titlemain
{
margin-left: 170px;
margin-top: 6px; 
}

#SubTopicNav
{
width: 150px;
height: 400px;
margin-top: 25px;
float:left;
}

#subTopicNav1
{
margin-top: 60px;
width: 150px;
height: 50px;
}

#subTopicNav2
{
margin-top: 60px;
width: 150px;
height: 50px;
}

#subTopicNav3
{
margin-top: 60px;
width: 150px;
height: 50px;
}

#subTopicNav1:hover 
{
margin-top: 60px;
width: 150px;
height: 50px;
background-color: #FFD640;
}

#subTopicNav2:hover
{
margin-top: 60px;
width: 150px;
height: 50px;
background-color: #FFD640;
}

#subTopicNav3:hover
{
margin-top: 60px;
width: 150px;
height: 50px;
background-color: #FFD640;
}
.container
{
    border-top: 5px solid #FFD640;

    margin-top: 25px;
}

#SubTopicNav 
{
    position:relative;
}
#SubTopicNav > div > div
{
    position:absolute;
    left:200px;
    top:0px;
    display:none;
    width: 600px;
    height: 400px;
    margin-top: 25px;
    float: left;
}
#SubTopicInfo
{
    display:none;
    background-color: #FFD640;
}

#SubTopicNav > div:hover >div
{
   display: block;
}