1
I know almost nothing of the, diagmos, "Advanced" of the CSS
!
So I wanted to know how to leave one div
well Responsive for users MOBILE
. So here’s the deal:
I’ve got divs with some footage, and some radios
, for choice of details etc! These divs
are of only one size, which is well adjusted to the screen of my notebook! But I want to make these divs
are well adjusted with the panel
page on all devices!
My code is like this:
.selecao-bordas {
left: 300px;
top: 150px;
width: 715px;
height: 100px;
overflow: auto;
}
.selecao-details {
left: 300px;
top: 150px;
width: 715px;
height: 200px;
overflow: auto;
}
<form>
<br>
Bordas
<div class="selecao-bordas">
<?php include("bordas.php"); ?>
</div>
<br>
Detalhes
<div class="selecao-details">
<?php include("detalhes.php"); ?>
</div>
<br>
Nível do Clã
<?php include("clanlevel.php"); ?>
</form>
A print of how it looks on the page:
http://image.prntscr.com/image/74d4235e915a43e3af1a987e70da9e62.png
So it stays when the screen decreases:
http://image.prntscr.com/image/92a0c3d6dedd4b928f3c5011b938722f.png
Have you thought about using bootstrap and his grid system?
– Giovane
I use Bootstrap, it didn’t even cross my mind!
– Sampaio Leal
How can I test a site in various sizes?
– Sampaio Leal
But like, how am I gonna get the columns to scroll? Always adjusting?
– Sampaio Leal
In Chrome, in the developer console (right-click, inspect element), there will be two icons in the top left-hand tab. The first is an arrow in a square the other is the image of a mobile phone and a tablet. Click on the image of the mobile phone and tablet. Ai you are already in the responsive mode of Chrome, you will see that you can increase and decrease the screen size without changing the size of the entire browser. In addition to selecting a specific screen size such as an iphone 6, please check this link https://developers.google.com/web/tools/chrome-devtools/device-mode/emulate-mobile-viewports
– Giovane
ah vlw I’ll try
– Sampaio Leal