Struggling to align a tab with 3 image buttons in the middle, I resorted to using manual margin adjustments. I also added captions separately from the buttons for aesthetic purposes, but know this is not the correct way. Is there a way to attach the captions directly to the buttons? Additionally, I need help spacing the buttons 50px apart within the tab. I am using bootstrap to align elements in a less than ideal way and seek guidance on proper alignment techniques. I will provide my code and a screenshot for reference. Thank you!
.box {
width: 100%;
height: 700px;
background-color: #f6f6f6;
margin-bottom: 40px;
}
.tab {
opacity: 0.8;
padding: 100px 0px 0px 0px;
margin-left: 200px;
width: 100%;
display: inline-block;
}
/* Style the buttons that are used to open the tab content */
.tab button {
background-color: inherit;
float: left;
border-color: grey;
cursor: pointer;
padding: 14px 16px;
transition: 0.4s;
font-size: 35px;
tab-spacing: 30px;
color: rgb(105, 105, 105);
}
.resumeicon {
width: 253px;
}
.coverlettericon {
width: 250px;
}
.interviewicon {
width: 250px;
}
.ressettings {
font-family: 'Satisfy', cursive;
font-size: 30px;
color: dimgrey;
text-align: center;
}
.coversettings {
font-family: 'Satisfy', cursive;
font-size: 30px;
color: dimgrey;
text-align: center;
margin-left: 50px;
}
.intsettings {
font-family: 'Satisfy', cursive;
font-size: 30px;
color: dimgrey;
text-align: center;
margin-left: 30px;
}
.hint {
font-family: 'Coiny', Serif;
font-size: 40px;
text-align: center;
color: navy;
padding-top: 60px;
margin: 0px 150px 0px 150px;
}
<div class="box">
<div class="hint">Looks through Resumés, Cover Letters, and Interview Questions in the field you chose...</div>
<!-- THIS IS WHERE THE RESUME/COVER LETTER/INTERVIEW ICONS START -->
<div class="container-fluid">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<div class="tab">
<button class="tablinks" onclick="openTab(event, 'Resume')"><img class="resumeicon" src="/Users/mtaslagyan/Desktop/resumania/images/resumeicon.PNG"></button>
<button class="tablinks" onclick="openTab(event, 'CoverLetter')"><img class="coverlettericon" src="/Users/mtaslagyan/Desktop/resumania/images/coverlettericon.PNG"></button>
<button class="tablinks" onclick="openTab(event, 'Interview')"><img class="interviewicon" src="/Users/mtaslagyan/Desktop/resumania/images/interviewicon.PNG"></button>
</div>
<div class="col-md-1"></div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-3"></div>
<div class="col-md-2 ressettings" align="center">Resumé</div>
<div class="col-md-2 coversettings" align="center">Cover Letter</div>
<div class="col-md-2 intsettings" align="center">Interview Questions</div>
<div class="col-md-3"></div>
</div>
</div>
</div>
While I understand my approach may lack professionalism, I aim to achieve the desired output efficiently and correctly. Any suggestions on how to improve the alignment and overall structure of the tab are greatly appreciated.