I am looking to create a responsive tab design that drops down like the example shown below:
Desktop/Large Screen View https://i.stack.imgur.com/hiCYz.png
Mobile View https://i.stack.imgur.com/gRxLv.png
I have written some code for this, but I am unsure if it can be achieved using just CSS or if it requires JavaScript/jQuery.
<div class="bottomRight">
<input type="radio" id="popularUpload" name="upload" checked="checked">
<label for="popularUpload" class="popularUpload">Popular Uploads</label>
<input type="radio" id="recentUpload" name="upload">
<label for="recentUpload" class="recentUpload">Recent Uploads</label>
<input type="radio" id="gallery" name="upload">
<label for="gallery" class="gallery">Gallery</label>
<div class="popUploadContent">...</div>
<div class="recUploadContent">...</div>
<div class="galleryContent">...</div>
</div>
Below is my CSS code:
#popularUpload,
#recentUpload,
#gallery {
display: none;
}
.popularUpload {
/* Styles here */
}
/* More CSS styles */
.galleryContentLeft {
/* Styles here */
}
If you have any suggestions on how to improve or edit my code, please feel free to provide them. You can view the complete code on JSFiddle here.