I'm an aspiring programmer who is still learning the ropes, as evidenced by this simple website. I'm struggling to understand why everything is overflowing outside of the container div, except for the search function.
For reference, I've been using Chrome to test and view all my programming work. However, when I put it in jsfiddle, the layout looks different. I'm not sure what I'm doing wrong in terms of sizing and positioning all the elements.
Below is the code snippet:
HTML:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<!-- Rest of the HTML markup -->
</div>
</body>
</html>
CSS:
.container
{
margin:auto auto;
width:975px;
}
<!-- Rest of the CSS styles -->
.searchbutton
{
width: 50px;
height: 45px;
}