Ciao a tutti,
ho creato questa classe per le tabelle:
codice HTML:
.photo table { border-collapse: collapse; border: 1px solid black;}
.photo td { background-color: #4CAA50; color: white;}
.photo img{ max-width: 100%; height: auto;}
e l'ho richiamato cosi' sulla pagina su wordpress:
codice HTML:
<table class="photo"> <tr> <td><img src="/wp-content/uploads/2019/12/HK%20HC%20sunset.jpg" alt="Ferry dock" width="700"></td> <td>View from China (香港中港城碼頭) Hong Kong china ferry terminal. With over 2.1 million people living in an area of less than 47 km², Kowloon is one of the most densely populated places on the planet. (11.19)</td> </tr> <tr> <td><img src="/wp-content/uploads/2019/09/Croce%20Rossa/AlbaI.jpg" alt="Alba da Croce Rossa" width="700"></td> <td>Just above Cibrario refuge in Val di Viu'. The name derives from the particular red cross painted on the slope that glimpsed at times, looking up from the Cibrario refuge. (10.19)</td> </tr> <tr> <td>Jill</td> <td>Smith</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> </tr> <tr> <td>Jill</td> <td>Smith</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> </tr> <tr> <td>Jill</td> <td>Smith</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> </tr></table>
Ora se vado alla pagina noto che nessuna formattazione e' ricevuta.
Non riesco a capire il mio errore, mi potete dare una mano?