Images don’t fit well into table cells
-
I am working with template Twenty Seventeen. I have to organize some images into a table with a nice border . The images have different width and height and the table’s td are nested using colspan and rowspan. Everything, outside WP is ok , I mean in terms of dimensions of the cells and images contained .But when I put the code into WP page the the images get different sizes , they are not well displayed and proportions between cells and images are changed respects working outside WP. Here the code
<table class="table6 table6_1" style="width:100%; height:520px; background-color: #D0E5DE; " > <tr> <td style="width:15%; font-size:0;"><img class="imgs1" style="display:block;" src="https://localhost/Wp_BellaEpoque\Cod_html_page_gallery_eventi\images\img_1.png" alt="" width="170" height="320px" ></td> <td style="width:15%; font-size:0;"><img class="imgs1" style="display:block;" src="https://localhost/Wp_BellaEpoque\Cod_html_page_gallery_eventi\images\img_2.png" alt="" width="170" height="320px" ></td> <td rowspan="2" style="width:35%; font-size:0px;"><img class="imgs1" style="display:block;" src="https://localhost/Wp_BellaEpoque\Cod_html_page_gallery_eventi\images\img_3.png" alt="" width="300" height="520px" ></td> <td rowspan="2" style="width:35%; font-size:0px; "><img class="imgs1" style="display:block;" src="https://localhost/Wp_BellaEpoque\Cod_html_page_gallery_eventi\images\img_4.png" alt="" width="300" height="520px" ></td> </tr> <td colspan="2" style="width:30%; font-size:0px; "><img class="imgs1" style="display:block;" src="https://localhost/Wp_BellaEpoque\Cod_html_page_gallery_eventi\images\img_5.png" alt="" width="340" height="200" ></td> </table> .imgs1{ margin:0; padding:0; } .table6 td{ border:10px solid; border-color: #DBB89A; } .table6_1{ border-collapse: collapse; border:10px solid; border-color: #DBB89A; }
Thank you for any help
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Images don’t fit well into table cells’ is closed to new replies.