Click here to Skip to main content
14,970,418 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have created a webpage with sliders and font-size of 58px; over the slider images.I am using google translate in my website to change the languages. When I view my website in mobile , due to the google translate the text over the slider is reducing to font-size:9px.

What I have tried:

I tried creating inline css for the fonts in google translate but is not working.Can somebody help me with this issue?
Posted
Updated 11-Apr-21 22:24pm

1 solution

The question makes no sense at all. Google translate at Google translate site has it's own styles which you cannot change; and Google translate data you probably get from this site cannot change the styles you define on your site.

No font size is reducing "due to Google Translate". Google Translate does not have access to your site. It's you who reduced the size, or anything else. How? You did not provide any information. Maybe you don't even show data on your site but redirect to Google's, I have no idea. The problem is quite simple: 1) send HTTP request to Google Translate (note that all the data is simply passed through the URL), 2) scrape data from HTTP response; 3) show it on your site the way you want; 4) credit Google for all the work.

—SA
   
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900