images are messed up by giving them title or html text

-1
<table>
</tr>
</thead>
<tr>
<a href="" class="mainmenu" /><img title="Overlord" src="https://lh3.googleusercontent.com/-wmXOMSvGdqE/W1olljMPl8I/AAAAAAAAASE/zcrXBcEDR5Q72zGVf24_41unNrU-fE7DACEwYBhgL/w140-h87-p/HALF_LIFE_3_WALLPAPERS_IN_HD.jpg"  alt="" HSPACE="20"></a>
</tr>
<tr>
<a href="" class="mainmenu" /><img title="Overlord" src="https://lh3.googleusercontent.com/-wmXOMSvGdqE/W1olljMPl8I/AAAAAAAAASE/zcrXBcEDR5Q72zGVf24_41unNrU-fE7DACEwYBhgL/w140-h87-p/HALF_LIFE_3_WALLPAPERS_IN_HD.jpg"  alt="" HSPACE="20"></a>
</tr>
</tr>
</table>

The problem is that I have arranged the images horizontally, they find a hover, everything is perfect. But when trying to add a text below either by <p> or <h1,h2,etc> among others that I tried, my images remain in vertical position, the truth is not because it happens but at the moment of inserting a title or heading underneath, they pass from horizontal to vertical. Help please.

    
asked by Taida 28.07.2018 в 06:18
source

1 answer

0

I do not know if you were wrong to put your code or you had it that way, but your table is badly composed, you close tags that do not see where they open if they open, you lack td , you add the / in a where you should not and you open the first tr bad. Besides that the problem you mention is because instead of the tr of the media you would have to have td , correcting the errors of composition and adding the td your table should be like this, with p showing correctly :

<table>
<tr>
  <td>
<a href="" class="mainmenu"><img title="Overlord" src="https://lh3.googleusercontent.com/-wmXOMSvGdqE/W1olljMPl8I/AAAAAAAAASE/zcrXBcEDR5Q72zGVf24_41unNrU-fE7DACEwYBhgL/w140-h87-p/HALF_LIFE_3_WALLPAPERS_IN_HD.jpg"  alt="" HSPACE="20"></a>
<p>fffffffffffffff</p>
  </td>
  <td>
    <a href="" class="mainmenu"><img title="Overlord"                     src="https://lh3.googleusercontent.com/-wmXOMSvGdqE/W1olljMPl8I/AAAAAAAAASE/zcrXBcEDR5Q72zGVf24_41unNrU-fE7DACEwYBhgL/w140-h87-p/HALF_LIFE_3_WALLPAPERS_IN_HD.jpg"  alt="" HSPACE="20"></a>
<p>fffffffffffffff</p>
  </td>
</tr>
</table>
    
answered by 28.07.2018 / 21:10
source