forum

Home / DeveloperSection / Forums / How to verticly align an object

How to verticly align an object

Anurag Sharma 1616 01-Jun-2015

I'm using a table which contains an H3 inside. Inside that H3 there is a google search bar. Now the google search bar is alligned at the top of the H3. How can I vertically allign it so it's centered? This is what I have at the moment:

<table>
  <tr>
<td id="Vak1.3"><h3>
                        <script type="">
                                                    (function () {
                                                        var cx = '013446364428343597193:qtxsarco2zs';
                                                        var gcse = document.createElement('script');
                                                        gcse.type = 'text/javascript';
                                                        gcse.async = true;
                                                        gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
                                '//www.google.com/cse/cse.js?cx=' + cx;
                                                        var s = document.getElementsByTagName('script')[0];
                                                        s.parentNode.insertBefore(gcse, s);
                                                    })();
                        </script>
                        <gcse:search></gcse:search>
        </h3></td>
    </tr>
  </table>


Updated on 01-Jun-2015

Can you answer this question?


Answer

1 Answers

Liked By