Mobile friendly template - html

I'm trying to create a mobile friendly website but I can't seem to get my base template right.
http://jsfiddle.net/dvQqb/
The template needs to be fullscreen, but not all the text needs to be small like my HTC Sensation (Cellphone) displays.
So it needs to have a width of 100% but it does not have to be seen like it is zoomed out.

A mobile browser will often assume, by default, that it's loading a page that was designed for a large screen, and therefore will make an assumption of size and then just zoom the entire document down.
To tell the mobile browser you want to target it's own screen size, you need to add the viewport meta tag information:
https://developer.mozilla.org/en/Mobile/Viewport_meta_tag

A great place to start is html5 Mobile Boilerplate.
Why it is awesome
Cross-platform compatible (Android, iOS, Blackberry, Symbian)
CSS class to target IE Mobile 7
Home screen icon (Android, iOS, Symbian)
Cross browser viewport optimization for Opera Mobile, Android, iOS, IE, Nokia, Blackberry.
Optimized viewport scaling (Opera Mobile, Android, iOS, Mobile IE, Blackberry)
Option to enable iOS start-screen in full screen mode
Better font rendering on IE Mobile
Adaptable markup and CSS skeleton
CSS stylesheet for low-end devices
Mobile sitemap
Mobile MIME type support
Build tool for mobile
Fix iPhone reflow scale up bug

Related

Force Web View On Mobile Screens

Have anyone tried forcing desktop view to display on mobile devices (when one clicks the view desktop version on their browsers)?
I was thinking if it is possible to maintain normal mobile view for mobile and then force desktop view when the view desktop version is selected on mobile devices...
The 'View Desktop Version' button present in google chrome browsers works this way:
It changes the User-Agent header in the request to match those
sent by the desktop browsers.
It ignores the original viewport meta tag and applies the default
"min-width: 980px;" media query to the css thus putting the responsive
pages into their desktop layout.
So if your website is responsive then there is no need to do any extra work. It will automatically switch to the desktop layout when forced through 'View Desktop Version'.

Different layout behavior in desktop and tablet or smartphone

I have a problem with a Website that I am building:
The design works perfectly on any device, especially on tablets and smartphones. It also works perfectly in Chrome Developer Tools -devices simulator.
However, when I reduce the size of the screen in a desktop to a similar size of a tablet or smartphone the design looks broken. The text is not respecting the z-index and it is visible over the active menu.
What could be the problem? Does anybody have the same problem?
use class of bootstrap for multiple layout
If u use mobile use class of class="col-sm-12" etc.
If you reload the page after you resize it on a desktop screen, is the design still broken?

My website does not display images on iOS

I have built a custom website, and am viewing it on my iPhone 4 that is running iOS 7. The site has a few images on it, but none of them are loading. All that shows is the image's alt tag. The site works fine on my iPhone 6s running iOS 9, and on every other device that I have tested on.
Does anyone know why are the images not loading on my iPhone 4 (running iOS 7)?
Here is a link to the website: http://testingsite1.herokuapp.com
It appears that your images are massive in size!
An image you're displaying at about 250px x 300px is actually 2687px x 3356px. That's way too large. The background image is also too large at 3000px x 2000px.
Make your images smaller if you want them to display on old devices with limited RAM.
Test how well does your browser support html5 on https://html5test.com
Keep your browser still up to date.
Test on iPhone 4 with most popular browser like Firefox, Chrome, Safari, and less.
Use Front-end Framework: Bootstrap, MDL, Semantic UI and more. Style in image will automatically works fine.
When you develop your website, you can use DevTools to view with device mode on your browser.

How to ensure that my page is wrapped by operamini browser?

I am developing page for low end phones like s40. However, I also need to make sure it works on phone with bigger screen. My page loads fine on bigger screen but its behavior is random with opera mini in nokia s40 phones. Sometimes the page is wrapped around properly, which is what I want. But other times I have to zoom, which is absolutely not wanted. And this occurs without making any changes on my html or css file. Any suggestion?
i would suggest you to take a look on the device specific mediaqueries here and also test your mobile browser or viewports compatibility on Opera mobile emulator , you can download it from Opera dev website..

How to make an application that works on both mobile and desktop web browsers?

I am trying to make a web-application, which I will host on a server. It should be able to be accessed by mobile browsers on all smart phones, and also on desktop web browsers.
I am pretty new to this. Checking this out on Google is confusing me a little more, because I know I can make applications in HTML5, CSS3 and JavaScript and they can be accessed on mobile browsers similarly as desktop browsers, but what I want to know is how to take care of the size and specification for the phone. The UI components should be user-friendly in mobile environment.
Is there any IDE or API that makes this possible?
but what i want to know is how to take care of the size and
specification for the phone,
You should be using CSS media queries for that:
#media (max-width:480px)
{
// styles for devices with width 480px or less, e.g. iPhone
}
MEDIA QUERIES