Hello, friends I have placed a google map a inside a cell and what I want to do is to centre it. I have proved several solutions, but none works. This is the code... <table> <tr> <td colspan="2" class="mapa" > <?php HTML_CLIE::showGoogleMaps($myClie, $config); ?> </td> </tr> </table> PHP: Can anybody help me? Please, see the picture. This is one of the CSS codes I've used. .mapa{ background:#666666; color: #FFCC33; border: thin solid; border-width: 2px; height: 100%; width:100%; } Kind regards, Lisa
<table> <tr> <td colspan="2" class="mapa" align="center"> <?php HTML_CLIE::showGoogleMaps($myClie, $config); ?> </td> </tr> </table> would do the job if class="mapa" in stylesheet doesn't have any allignment assigned
Looking at your picture looks like you could have a left and top padding inside table cell, try putting <table> <tr> <td colspan="2" class="mapa" style="padding:0;"> <?php HTML_CLIE::showGoogleMaps($myClie, $config); ?> </td> </tr> </table> HTML: