How to put an image next to the other in a gallery?

2

I'm creating a gallery on my website using html and formatting in css, I put each image in a div and used the float tag so that in the gallery view one image stands next to the other. But it's getting a "blank" space. Here is my css format:

.galeria-foto {
    background: #ffffff;
    width:265px;
    height:250px;
    float:left;
    margin:25px;
    padding: 10 auto;
}
    
asked by anonymous 25.10.2017 / 12:07

1 answer

1

This is probably occurring because of the outer spacing between the divs. Try changing the value of the margin attribute and test to see if the problem will be resolved. Ex:  margin: 20px;

    
25.10.2017 / 12:12