1
I used the code @hugocsl gave me and it was aligned, but now it’s tiny in responsive. I used min-width and it worked!
.img map { float: left; border:1px Solid; } map {. display: flex; Justify-content: center; }
<div class="row mapa">
<div class="">
<a href="">
<img src="https://i.stack.imgur.com/Q9OVp.png" title="Goiania" style="display:block">
</a>
</div>
<div class="">
<a href="">
<img src="https://i.stack.imgur.com/RvW7B.png" title="Brasília" style="display:block">
</a>
</div>
<div class="">
<a href="">
<img src="https://i.stack.imgur.com/vbYRO.png" style="display:block">
</a>
I think you are still having doubts about the bootstrap Grid system, take a look at this tutorial of w3s https://www.w3schools.com/bootstrap/bootstrap_grid_basic.asp in English (I recommend using the Chrome translator if you do not understand, the translation in this case is good)that will help you greatly
– luizricardo6n
Another problem I’m having is that it is partially aligned on the smartphone and completely misaligned on the computer.
– Lila Bastos
Hello Lila. You can edit your question by clicking on the "edit" link just below where the tags appear (
html
,css
) Edit and include this text there, is more readable. As for your problem I could not replicate, at least not on the computer. I copied your code and put it on jsfiddle, see how you are: https://jsfiddle.net/Pontual/aq9Laaew/54779/– Ricardo Pontual
Your replica has been aligned exactly as needed, but the page is not at all!
– Lila Bastos
Then the problem may be other page attributes, or even references to the
bootstrap
. Include the full html code of your page in the page, including thehead
also. Click on this link to edit your question: https://answall.com/posts/309700/edit– Ricardo Pontual
What is the purpose of putting the pieces of the images on the grid? Wouldn’t it be better to use them outside the grid? What is your intention to mount the map with Grid?
– hugocsl
I need to turn a map into links to access different regions and that’s the only way I could do it.
– Lila Bastos
@Ricardopunctual It runs the head and does not show the code, but I cleaned the page completely leaving only the Bootstrap call. <html> <head> <meta charset="UTF-8"> <title>TEST</title> <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css"> </head> <body>
– Lila Bastos
Take a look again at the link I’ve assembled jsfiddle on the left has an icon with the number "5", clicking there you will see all the references of
bootstrap
that I used. Apart from the font-awesome.min.css and the Popper.min.js, the other 3 have to be on your site, it seems to me that you are forgetting some library. Thebootstrap
has a pitch .js and a .css and also the jquery, see if this isn’t missing in yourhead
– Ricardo Pontual
@Ricardopunctual I used a code indicated here by hugocsl and was aligned, now I just need to adjust the size in the responsive, because the map became tiny. I had taken the references to test the alignment. Thank you very much!
– Lila Bastos
@Lilabastos if this using bootstrap do not see why create a grid from scratch, as the hugocsl response suggested, it is better to use the bootstrap ready soon and read the answers indicated in the links that I and Bacco send you.
– Guilherme Nascimento