If you're looking to learn more about Bootstrap, I recommend checking out their official documentation at the following link:
http://getbootstrap.com/css/
This resource provides comprehensive information on mobile resolution, media screens, and more.
To assist you in getting started with your website, I've put together a simple sample for you:
Here's the HTML code:
<div class="general">
<div class="container">
<header class="col-xs-12">
<img class="logo" src="http://blog.kajrietberg.nl/wp-content/uploads/2013/09/HTML5_oval_logo.png">
<span class="col-xs-12 title">alexfqc sample</span>
</header>
<main>
<input class="col-xs-10 col-xs-offset-1 col-sm-offset-2 col-sm-8 col-md-offset-3 col-md-6 col-lg-offset3 col-lg-6">
</main>
</div>
</div>
And here's the CSS code:
body{
background-color:#F7F7F7;
min-width:320px;
}
general{
width:100%;
}
header{
margin-top:40px;
}
.logo{
width:35%;
margin-left:auto;
margin-right:auto;
display:block;
}
.title{
text-align:center;
margin-top:10px;
}
input{
height:30px;
}
In Bootstrap, the "container" class automatically adjusts to screen resolutions. The "col-xs-12" class means it has a width:100%
up to 768px screens.
Bootstrap divides into 12 blocks, so you can adjust widths based on these blocks. For example, to have width:50%
up to 768px, use "col-xs-6".
If you don't specify classes for other resolutions (col-sm-, col-md-, col-lg-), the width:100%
from col-xs-12 will apply.
I've adjusted margins and input widths based on resolution:
col-xs-10 col-xs-offset-1 = 1 block for margin-left, 10 blocks for width (totaling 11, leaving one block for center alignment).
col-sm-offset-2 col-sm-8 = 2 blocks for margin-left, 8 blocks for width.
col-md-offset-3 col-md-6 = 3 blocks for margin-left, 6 blocks for width.