How to make text fill up entire page on mobile browser? - html

I have a very simple HTML page that shows bitcoin prices, on mobile it looks terrible because the text is really small and there is a lot of empty space on the right. How can I make this so it fills up the width of the page?
<html>
<head>
<title>HTML in 10 Simple Steps or Less</title>
<meta http-equiv="refresh" content="60" />
</head>
<body>
<script src="https://widgets.coingecko.com/coingecko-coin-list-widget.js"></script>
<coingecko-coin-list-widget coin-ids="ethereum,bitcoin,aave,convex-finance,dopex,dydx" currency="usd" locale="en" width="300""></coingecko-coin-list-widget>
</body>
</html>
https://imgur.com/a/dNG0EKM

The following header tags will prevent the device from scaling automatically and allow you to take control.
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="HandheldFriendly" content="true">
Then, assuming its an iframe, apply this CSS:
iframe{width:100%}

Related

Html image in a meta tag

I'm using discord, and I saw a lot of people do that thing (the big square in the image).
I tried to do that in html with meta tag, but it came out with the result (image number 2).
I really want to know how to do this, can someone please help me?
Image number one
| image number two
And there is the code I use for doing this:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta property="og:title" content="An Image By ItsJustOne#9817">
<meta property="og:description" content="Remember always that there is an end in the tunnel 🥰">
<meta property="og:image" content="https://cdn.discordapp.com/banners/907132383814377502/4aca154cd6040b31aacaaf781877f121.png?size=1024">
<meta name="viewport" content="width=device-width">
<title>Why You Are Here?</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
Why You Are Here?
<script src="script.js"></script>
</body>
</html>
The image I'm trying to use is my discord banner.
It was 4 months ago, and I forgot to write here that I found a solution a week after asking here!
The solution is simple, using other meta tags, not the regular. The twitter meta tags.
<meta name="twitter:title" content="Title">
<meta name="twitter:description" content="Cool description">
<meta name="twitter:image" content="the image link">
<meta name="twitter:card" content="summary_large_image">
Replace there the title, description, and the image link.

Zoom in/out doesn't work on my mobile phone (Blogger)

I try to add the text below on my head-tag, but the zoom in/out is not working on my mobile phone.
<meta content='width=device-width, initial-scale=1' name='viewport'/>
ex: http://chenweilun.blogspot.tw/2016/11/test.html
It works, but when I add the following text in my article:
<meta content='width=device-width, initial-scale=1' name='viewport'/>
ex: http://chenweilun.blogspot.tw/2016/07/blog-post.html
It stops working. Did I miss something?
There is some reference link about the zoom in/out on blogger: http://fuseinteractive.ca/blog/avoiding-landscape-zoom-in-effect-on-mobile#.WCgKs_B97IU
In Blogger template they set the scale by this meta tag
<meta expr:content='data:blog.isMobile?quot;width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0":"width=1100"' name='viewport'/>
Replace the above with the next meta tag after your <head> element directly to allow user-scalable. you can also change the maximum-scale value.
<meta content='width=device-width, initial-scale=1.0, maximum-scale=10.0, user-scalable=yes' name='viewport'/>
first of all
sign in your blogger.
and go to the Theme Section.
next edit HTML.
search " Viewport ".
and you got something like :
<meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'/>
And Replace with :
<meta content='width=device-width, initial-scale=1.0, maximum-scale=10.0, user-scalable=yes' name='viewport'/>
thank you :)

How to replace meta tags with something else

I have a big problem with meta tag. More precisely:
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
I have a program that automatically "push" things on eBay (with template). I want responsive template (it is made on bootstrap), but I can not use these tags because this program (literally) cuts it. At this point, all my work on the template goes in vain. Can someone colud help me?

meta name="viewport" not working as expected

I am creating a new site. In the head I have
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!-- for mobile phones -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
However, on mobile devices its large and you have to scroll horizontally. i was expecting it to scale and fit into the width of the device. I have used this before on other sites and it has worked fine.
What's wrong please

Can I have jquery mobile working without the ui-mobile class in the html tag?

I think having this class added to the html tag is causing this tag not to work as is supposed to.
<meta http-equiv="X-UA-Compatible" content="IE=edge">
I got it working as I said, basically if you want to use Jquery Mobile and the internet explorer "edge" meta-tag the best way to do it to make sure it will work is to send the headers through PHP and include the html file without headers, you can add styles and scripts in the body. Here is my code:
<?php
header( 'X-UA-Compatible: IE=edge,chrome=1' );
header( 'content: width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' );
include('ix.html');
?>
Try this instead : <meta name="viewport" content="width=device-width, initial-scale=1">
Some examples I found online show that they put the second meta element after the view port.
<!DOCTYPE html>
<html>
<head>
<title>Starter page</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css" />
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>
</head>
http://www.appliness.com/getting-started-with-html-mobile-application-development-using-jquery-mobile-requirejs-and-backbonejs/
http://www.1stwebdesigner.com/css/jquery-mobile-need-to-know/
Changing page meta: jquerymobile one page with different meta viewport settings