Make embed element mobile responsive - html

I have a site with an embed element:
<embed src="https://cf.milan1.nl/" style="width:294px; height: 109px;">
The problem is, on mobile screen the element is tiny, no matter what I tried.

You need to define the initial scale of page on mobile devices so the page fit the mobile resolution. Try this in the header of your page:
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Related

Make full width for a non responsive site when browser resize

I have made a non-respnsive site using the below viewport:
<meta name="viewport" content="width=1400">
It is showing the desktop view on both desktop and mobile without any issues.
But when I resize the browser, the page goes beyond the screen horizontally. Which is the expected behaviour.
Is there some CSS or script which I can use to make the page full width when we resize the screen too so that the screen will show full width and height will decrease just like on mobile?
I used the below CSS to make it happen:
body {
width: 100%;
}
But it breaks the layout when resizing the screen.
Can anyone point where I made the mistake?
Thank you.
If you want control on diffrent viewport you must be add this below meta tag:
<meta name="viewport" content="width=device-width, initial-scale=1.0">

set meta viewport width but not show all content

I was building a non-responsive website whose minimum width is 1600px. How to center all content and let all content be visible while viewing on mobile? I set the meta viewport to <meta name="viewport" content="width=1600">, but the content is not center on mobile. And there is a horizontal scrollbar appeared. (on iphone 5) Thank you.
Use <meta name="viewport" content="width=device-width, initial-scale=1.0"/> to render the web page in respect to the mobile display.

Bootstrap responsive to browser size but not in responsive inspect

I just built a website in which styles and layouts are responsive when adjusting browser window size, but when I open responsive inspect, it does not respond-- columns don't break at all and the window simply resizes into a percentage of the site...
Why would this happen?
Please make sure that you have Responsive Meta Tag inside your Head tag.
<meta name="viewport" content="width=device-width, initial-scale=1">

I have a mobile website but it loads zoomed out. How can I fix this?

I have a mobile website but it loads zoomed out. How can I fix this.
You should insert the Viewport meta tag.
<meta name="viewport" content="width=device-width, initial-scale=1">
This means that the browser will (probably) render the width of the
page at the width of its own screen. So if that screen is 320px wide,
the browser window will be 320px wide, rather than way zoomed out and
showing 960px (or whatever that device does by default, in lieu of a
responsive meta tag).
Reference: Css-Tricks - Responsive Meta Tag - MDN - Using the viewport meta tag to control layout on mobile browsers
You might need to set the viewport
<meta name="viewport" content="width=device-width, initial-scale=1" />
http://davidbcalhoun.com/2010/viewport-metatag/

how to zoom out page in mobile

I have created a fluid webpage, i used % width to make it adjust to every resolution.
But the problem is in mobile device the page layout breaks. I want to zoom out the page for mobile device so the page fits in small width and user can zoom in to enlarge the page.
I tried the below meta tag. But the problem is here user can't zoom in. user-scalable=yes and initial-scale=0.25 is not working together.
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=0.25" />