The below application is built using Bootstrap that is compatible across devices. Please save below file as App.html or by name with .html exptension to view across different devices:
App.Html:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,
initial-scale=1">
<title>Sample Application</title>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"
integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp"
crossorigin="anonymous">
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
crossorigin="anonymous"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style>
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 50px;
padding: 15px;
background-color: #f5f5f5;
}
.footer p {
text-align: center;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse
navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">MyApp</a>
</div>
<div class="collapse navbar-collapse"
id="bs-example-navbar-collapse-9">
<ul class="nav navbar-nav">
<li class="active"><a
href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h1>Sample Application</h1>
<p>This is a sample applications that contains three
sections</p>
<p><a class='btn
btn-primary'>Navigate</a></p>
</div>
</div>
<div class="container">
<div class="panel-group" id="accordion" role="tablist"
aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion"
href="#sample1" aria-expanded="true"
aria-controls="collapseOne">
Sample 1
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in"
role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
This contains Sample 1 Content
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion"
href="#sample2" aria-expanded="true"
aria-controls="collapseOne">
Sample 2
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in"
role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
This contains Sample 2 Content
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion"
href="#sample3" aria-expanded="true"
aria-controls="collapseOne">
Sample 3
</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in"
role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">
This contains Sample 3 Content
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="text-muted">Footer content goes here. This contains
copyright information</p>
</div>
</footer>
</body>
</html>
Please find below screenshots tested across devices:
iPad Mini:
Android Galaxy:
Google Pixel 2:
Get Answers For Free
Most questions answered within 1 hours.