[Pro] Centre Google Translate Logo

I also used Google Translate on a site, http://www.theberrypatch.com.au

It was a while ago now, long after my short term memory expiration date, but I seem to recall some positioning problems. The Google code produces an iframe so I’m not sure that the content is positionable, but I think that I used absolute positioning to hang it off the right. Here is what I quickly put together for your example…

div#:0.targetLanguage.goog-te-gadget-simple { 
    position: absolute; 
    right: 5%;
}

Margin auto and some other forms of centering can break down for items that are not actually in the document flow (floats and scripted elements). I don’t know what the hey is with the code that makes it so, but centering it is just not a practical solution for this, so I opted for a right alignment. Maybe you will too.

Best,


freewaytalk mailing list
email@hidden
Update your subscriptions at: