Activity Stream
48,167 MEMBERS
6953 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member

    Default How to resize google translate snippet

    i added the google translate snippet code in footer, but not able to resize, because it doesn't show anything except few java codes




    Code: 
    <div id="google_translate_element"></div>
    <script type="text/javascript">
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
    }
    </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

    it can be modified using css......?? that is increase the width of that snippet table......?
    torrfriend Reviewed by torrfriend on . How to resize google translate snippet i added the google translate snippet code in footer, but not able to resize, because it doesn't show anything except few java codes :( http://i2.lulzimg.com/80778ebc71.png <div id="google_translate_element"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); } Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Add a CSS Element

    Code: 
    #google_translate_element {
    width: 60px;
    height: 50px;
    }
    You should wrap your code with 'google_translate_element'

    Code: 
    <div id="google_translate_element">
    <script type="text/javascript">
    function googleTranslateElementInit() {
      new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
    }
    </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
    </div>

  4.     
    #3
    Member
    thanks buddy it works

    any way to replace that google icon image....??

  5.     
    #4
    Member
    Sorry, I have never used it before.

    You might be able to change it using a simple javascript, but i don't think it's allowed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is the best translation on google translate?
    By proposter in forum General Discussion
    Replies: 11
    Last Post: 5th Mar 2012, 11:33 AM
  2. Yet another Google Translate fail!
    By ProtoWorker in forum General Discussion
    Replies: 14
    Last Post: 8th Nov 2011, 05:44 PM
  3. Transmiti, a Google Translate Client
    By Daniel in forum Useful Sites
    Replies: 4
    Last Post: 14th Sep 2011, 06:01 AM
  4. Make Google Translate beatbox!
    By xs123 in forum General Discussion
    Replies: 9
    Last Post: 3rd Dec 2010, 03:37 PM
  5. Google Translate System
    By AbaDe in forum General Discussion
    Replies: 11
    Last Post: 27th Aug 2010, 10:44 AM

Tags for this Thread

BE SOCIAL