How to arrange pictures? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:18:54
Original
1790 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template