I want the images to be of a fixed size, two in a row, and a total of three rows, but all six images are arranged in one column. The html and css codes are as follows:
css code:
.thumbs_block {
width: 500px;
height: 500px;
}
.thumbs_block a {
width: 100px;
height: 100px;
display: block;
position:relative;
overflow: hidden;
}
.thumbs_block img {
width: 100px;
height: 100px;
position:relative;
}
Reply to the discussion (solution)
Add the table tag
Thank you, thank you
Besides using table, is there any other way to achieve this effect? I feel like there are too many table codes
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn