I have tried several different sources on the Internet. I am not using bootstrap; I enjoy doing my site from scratch. It helps me program.
I can't get my web page to auto adjust to the screen size. For example if you make the browser smaller the page collapse nice and neat.
I tried these codes from here: http://www.gonzoblog.nl/2013/01/16/11-useful-css-code-snippets-for-responsive-web-design/
but my web page doesn't collapse like the example.
<!--
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="HandheldFriendly" content="true">
-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="sunpacking.css">
<title>Sun Packing WebSite</title>
<link href="../../Documents/Sun Packing/sun.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.div1 {
margin: 20px;
}
</style>
</head>
<body>
<div style="width:800px; margin:0 auto;">
<div id="container">
data
</div>
/*Sun Packing CSS */
/*
body{
padding:0px;
margin:0px;
width:100%;
height:100%;
}
*/
#container {
float: none;
border-style: dashed;
border-color: red;
width: 100%; /* 95px*/
height: 100%; /*1400px*/
color: red;
}