Code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Layout</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<style type="text/css">
* {
padding: 0; margin: 0;
}
html {
height: 100.1%;
}
#content1 {
float: left;
width: 25%;
background-color: #DDD;
}
#content2 {
float: left;
width: 25%;
background-color: #CCC;
}
#content3 {
float: left;
width: 25%;
background-color: #CCC;
}
#content4 {
float: left;
width: 25%;
background-color: #CCC;
}
</style>
</head>
<body>
<div id="content1">content 1</div>
<div id="content2">content 2</div>
<div id="content3">content 3</div>
<div id="content4">content 4</div>
</body>
</html>
System view like,
| Content 1 | content 2 | content 3 | content 4 |
how to change the view in mobile like,
| Content 1 | Content 2 |
| Content 3 | Content 4 |