Jump to content

Google Translate


Bill Teale

Recommended Posts

I've learned a lot from the page on how to embed Google Translate n the website, and I have a question.  

Why does the Google translate not show up in mobile versions of the site. I am using Bootstrap v5

Is it something I did or missed adding? Or is this an expected result?

Edited by Bill Teale
Link to comment
Share on other sites

  • 4 months later...

There are probably "media queries" (https://www.w3schools.com/css/css_rwd_mediaqueries.asp ) which alter the content based on the screensize.

You have to figure out:

1. What your screen viewport size is (window.innerHeight + window.innerWidth)

2. Determine which stylesheet is being used based on the screen size (e.g. small.css, medium.css, large.css)

3. Figure out if the element is being hidden by the CSS (e.g. "visibility:hidden' or 'display:none')

Edited by JamesL
typo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...