HTML template for mobile devices. Flatsome Mobile Template – Multipurpose and Responsive WordPress Theme

All presented templates for your website are built on modern versions of HTML5 and CSS3. In addition, the authors use such fashionable features as flat design, responsive design, adaptive layout, jQuery sliders, CSS3 animation, etc. That is, if you are looking for a mobile website template, you can choose any of the presented ones. Beautiful html5 templates 2017, although free, look premium.

Here you will find more than 50 free high-quality responsive website templates in HTML5 and CSS3, which can be used both for new sites and for redesigning existing ones. Stylish html5 website templates are what you need!

Updated 03/12/2019: Since the article was written 2 years ago, many links became broken. Either the owners of the templates merged, or changed the status of the templates from free to paid, or the aliens ruined everything. We ask you, dear readers, if you find such a link, leave it in the comments, I will correct it.

1. Snow - free landing page template using HTML5 and CSS3

HTML5 css3 template landing page Snow is built on the Bootstrap framework. The template is very stylish and cool! A fixed background and a huge Jumbotron - a thing that shows the main content of the site. What is the most important thing on the landing page? That's right, a call to action. Naturally, the template is fully adapted for mobile devices. You can even use it as a basis for your own templates.

2. Sima - chic commercial website template

This html5 css3 template is also built on the Bootstrap framework. You can create a unique website on this template with a portfolio, your team, prices, reviews and everything else that will be necessary. For example, this template is perfect for a website for cleaning services. The animation in this template is smooth and effective, the fonts are clean and easy to read. Just the perfect template!

3. White - a wonderful one-page template!

A distinctive feature of the White website template is two background options at the top. Your choice is either a slider with pictures or a video background. Very high quality and effective template for the site!

4. Platz - Free HTML5 Grid Based Website Template

A modern, visually appealing HTML5 website template designed on a grid basis (read more about the grid). Beautiful and responsive template design for a blog or website.

5. Mart eCommerce - a wonderful HTML5 and CSS3 website template for ecommerce

The fresh and stylish design of the website template is best suited for all types of fashion websites selling shoes, clothes, watches, accessories, sportswear, etc. It comes with a PSD file that you can adjust to suit your needs.

6. Nava - spectacular HTML5 and CSS3 template for creative websites

Nava is a modern HTML5 website template that is used mainly for creative professionals who want to show off their work in all its glory. Many variations of template settings allow you to make your website unique. Lightweight, beautiful and responsive website template.

7. Box Portfolio - a unique creative website template using HTML5 and CSS3

Box Portfolio website template has a clean and modern minimalistic design. Perfect for professionals who want to effectively display their work online. As the name suggests, the website template is ideally suited for a portfolio.

8. Mountain King - popular and functional HTML5 and CSS3 website template

The mountain theme in website design has been very popular lately. The Mountain King website template is no exception. Includes 336 vector icons from Typicons. Plus great animation using CSS3. The template is perfect for travel and portfolio websites.

9. Beauty Spa - cool template site on HTML5 and CSS3 for spa salons

Beauty Spa is a responsive website template that has many features, ideal for spa sites, health or fitness centers, yoga sites or even hair salons. Excellent readability of fonts and unobtrusive minimalism.

10. Bent – ​​stylish and effective landing page for websites using HTML5 and CSS3

Bent is a great free website template in html5 and css3. Responsive design, CSS3 animation, parallax scrolling, custom navigation and other goodies. This is a clean template design for sites that want to use a balanced design to ensure that visitors enjoy the look and feel of the site while still clearly seeing its core content.

11. Triangle - Free Responsive Multipurpose HTML5 and CSS3 Template

Triangle is an exclusive creative HTML5 and CSS3 website template specifically for those who want to tweak their cool design, but not make it worse. The template comes with over 40 pre-designed pages that allow you to customize your site to your heart's content.

12. Future Imperfect - a brilliant website template for creative people!

Experience a genuine sense of fun with this website template, ideal for writers, authors, copywriters and other pen and paper workers. The template can also be used for a personal blog, a blog about travel, creativity, etc. Many people will like the creative design and adaptive layout of the template.

13. Bodo - a great template for a personal website

Bodo- beautiful template site on HTML5 and CSS3, which is ideal for a personal site. Especially for organizing a portfolio. Clean and crisp typography, carousel slider, pop-up windows to display work and much more.

14. Lens - the perfect HTML5 website template for photographers

Photographers are always looking for the perfect template for their website to show their work in all its glory, impressively and most importantly - large! A rare website template meets these requirements. Lens is one such photographer website template.

15. Spectral - unique template handmade website using HTML5 and CSS3

If you are looking for free website templates on the auto theme, then Spectral will ideal solution. Here is a completely unique handcrafted one page website template design. The design can be changed at your discretion. With this template you can make a stunning website on absolutely any topic, be it an impressive travel blog or photo gallery, an automotive website or a hosting provider.

16. Oxygen - one-page HTML5 and CSS3 website template

Oxygen is a convenient and unique template for a business website. Modern flat design, adaptive layout. For example, this template is ideal for a site about mobile applications or mobile technology.

17. Mobirise Bootstrap - the perfect free website template on HTML5 and CSS3

If you're looking for a free website template, then Mobirise Bootstrap is perfect to get you started. This is a multifunctional template with a lot of extras included. Three pre-made layouts home page and the blog will help you with this. Mobirise Bootstrap is also 100% SEO optimized and adapts to any screen size.

18. La Casa - beautiful and free HTML5 template for a real estate website

The Brandy template is perfect for organizing a commercial real estate website. Responsive and very beautiful design will appeal not only to the site owner, but also to visitors.

19. Drifolio - stylish HTML5 website template for portfolio

Stylish and animated HTML5 and CSS3 website template for organizing a portfolio. Clean design, great typography, beautiful icons and much more.

20. Pluto - bright and stylish template for a one-page site

Pluton is a bright and effective website template based on Bootstrap. A modern website template with its unique one-page layout and responsive design that is great for studios, photographers and creative designers.

21. SquadFree - professional one-page website template in HTML5

The SquadFree template is perfect for creating a commercial one-page website. The template not only looks professional, but is also adapted to all types of screens. The template is based on Bootstrap.

22. Sublime - a fascinating website template on HTML5 and CSS3

Sublime is a clean and stunningly beautiful HTML5 and CSS3 website template perfect for a startup, creative agency or portfolio site. Responsive design and two page options to choose from.

23. Timber - unusual and beautiful HTML5 and CSS3 website template

Timber is a fresh, stylish and unusual one-page website template theme. The diagonal is the main design feature of this template. The template is perfect for a business website or portfolio. There is a built-in gallery, map and Contact Information, which you can easily adapt to your needs.

24. E-Shopper - the best e-commerce website template

E-Shopper is a great option for an e-commerce website template. Built on bootstrap with an amazing set of features for a complete and efficient online store.

25. Magnetic - free HTML5 and CSS3 template for a photo site

An absolutely stunning HTML5 and CSS3 template for creating a photo website or portfolio for a designer, illustrator or artist. This template takes the bar of professional templates to the next level! Responsive design, excellent support for all types of display devices, easy and convenient navigation and much more.

26. Mabur Portfolio - a beautiful website template in a minimalist style using HTML5 and CSS3

The flat design of this minimalist website template is perfect for creating a portfolio. In the template, all the details are checked perfectly!

27. Modern Bootstrap HTML5 - Free One Page Website Template

This free one-pager Based on the Bootstrap framework, it is perfect for corporate websites, both for small and large companies. Flat design, adaptive layout, all high quality design elements. The template comes in 4 different colors.

28. Infusion - stylish one-page website template using HTML5 and CSS3

Infusion is a great example of an HTML5 and CSS3 website template that is specifically designed for creating a business portfolio. The rich functionality of this template allows you to effectively work with clients and attract new ones.

29. Yebo - corporate website template on HTML5 and CSS3

This high quality flat style website template is perfect for any corporate website. Adaptive design, tons of settings and editing options.

30. Twenty - spectacular HTML5 and CSS3 website template with parallax

This unique and very beautiful website template with parallax effect will not leave anyone indifferent. The one-page template is built on pure HTML5 and CSS3 with responsive layout, impressive backgrounds, social media support, etc.

31. Urbanic – excellent HTML5 and CSS3 website template on Bootstrap

Urbanic is a fresh and cool HTML5 and CSS3 website template built on the Bootstrap engine. Perfect for starting your website right away without special problems. The template is perfectly adapted to any screen size.

32. Design Showcase - HTML5 portfolio website template

A visually harmonious and effective HTML5 website template for organizing your portfolio. The template is perfectly adapted for mobile devices, which is very difficult to do for sites of this format.

33. Mamba One - a simple and stylish website template using HTML5 and CSS3

Mamba One is an example of a simple yet stylish website template for creating a one-pager. Compatible with all modern browsers and will be displayed adequately everywhere.

34. KreativePixel - free website template for photographers

Another great website template for photographers. Responsive design and very convenient sorting of photos in portfolios and galleries will appeal to many photography lovers. The template also uses a parallax effect, which also impresses viewers when viewing photos.

35. Retina Ready Responsive App - free landing page template using HTML5 and CSS3

As the name suggests, this wonderful website template is not only ideal for landing pages, but also meets new mobile trends, especially in terms of display clarity on devices with Retina displays.

36. Brushed - responsive HTML5 and CSS3 website template based on the Bootstrap engine

Brushed is a responsive, free HTML5 and CSS3 website template based on the Bootstrap engine. Also optimized for Retina displays (iPhone, iPad, iPod Touch And MacBook Pro Retina).

37. Big Picture HTML5 and CSS3 website template

Welcome to Big Picture! This responsive HTML5 website template is perfect for all creative people who have something to show, and show it big and impressive on their website. In addition, the template uses excellent animation.

38. Tesselatte - Free Responsive HTML5 and CSS3 Template

A simple one-page template that takes everything into account necessary tools for successful website creation. Ideal for the personal blog of a writer, copywriter, or just a lover of the written word.

39. Overflow - a unique website template using HTML5 and CSS3

This unique pure HTML5 and CSS3 website template is perfect for any creative person. It is fully responsive and completely free.

40. Runkeeper - responsive and very beautiful website template

Runkeeper is a free, responsive and very beautiful website template. It can be used for a website of any subject. Brilliant style and clear fonts, responsive design and impressive template details. Everything works for you!

41. Pinball Responsive Grid Style - Great Grid Based Website Template

This amazing professional grid based website template is perfect for a corporate website. Modern flat design and responsive structure of the template are perfectly displayed both on large monitors and mobile devices.

42. Prologue - clean one-page website template using HTML5 and CSS3

This clean, simple and clear HTML5 and CSS3 website template is perfect for building a landing page. Minimalist design does not distract from the main thing. An eye-catching scrolling side navigation bar and clean page lines are just the perfect combination!

43. Helios - modern website template using pure HTML5 and CSS3

Another website template in the style of minimalism and clean forms. Specifically designed to take advantage of large display screens, but also perfectly adapted to the small screens of mobile devices.

44. Telephasic - free and responsive HTML5 website template

This modern, responsive and completely free website template has one big advantage - it is simple and concise, but this is exactly what many people lack.

45. Strongly Typed - a very beautiful website template in a semi-retro style

A new website template with a minimalistic semi-retro style. It’s just that retro is no longer in fashion, but a slight hint of it is very welcome. This website template is fully responsive, built on pure HTML5 and CSS3 and includes all the necessary core page elements. The Strongly Typed template is ideal for creative websites. For example, for a site about home decor.

46. ​​Striped - clean, beautiful and functional HTML5 and CSS3 website template

Fresh and clean, beautiful and functional, new website template in HTML5 and CSS3. It has in its arsenal all the necessary page elements, including designed quotes, tables and lists, as well as an adapted sidebar (on the right or left - as you wish).

47. Parallelism - an unusual and stylish website template using HTML5 and CSS3

Parallelism is a stylish website template for organizing portfolios or photos. What makes it unusual is that the scrolling here is not vertical, as usual, but horizontal. This gives the site a special chic and memorability.

48. Miniport - fully responsive HTML5 website template in minimalist style

Excellent website template in minimalist style on HTML5. Perfect for a personal website/blog, as well as a small one-page corporate website or as a business card website.

49. Verti - spacious and free responsive HTML5 website template

The clean and spacious design of this website template is perfect for large corporate websites or commercial projects. Responsive and convenient for both the author and users.

50. ZeroFour - impressive and stylish website template using HTML5 and CSS3

And last on the list, but not the least in terms of quality and visual effectiveness, is the website template - ZeroFour. Stylish design, very beautiful menu, perfectly adjusted forms and buttons, beautiful icons and much more. And all this is absolutely free!

I hope you found something suitable for yourself among these amazing HTML5 and CSS3 website templates. Good luck!

Bookmark it so you can find it quickly.

PS: If you can’t make a choice, read the article “I don’t know what I want.” It will be useful.

I have prepared a fresh selection of twenty of the most interesting premium themes for WordPress, which are perfect for creating presentation websites and landing pages. mobile games and applications.

Global development of mobile telecommunications, accessibility mobile internet has formed a completely new, dynamically developing market for mobile applications. Which has grown into a huge industry in just a few years. It is difficult to count how many interesting startups focused on mobile devices have appeared in recent years. The market is large and profitable, many companies and developers understand this and strive to conquer it.

The development of mobile technologies and the growth of smartphone productivity contributes to the improvement, functionality and quality of mobile applications. Top smartphones are already almost equal in performance to personal computers. And the office ones have probably already been bypassed. Against this background, the widespread growth is no longer so surprising mobile traffic. Google turned off its “live search” last week, for example. This was motivated by the huge share of mobile traffic and the features of mobile search. I think the mobile application market is very promising. At least, in the coming years there will only be growth, development, improvement, deeper penetration into everyday life, into the so-called. internet of things.

As in any other area, any mobile application needs bright, beautiful packaging in the form of a presentation website. Where it would be possible to demonstrate its capabilities, talk about its advantages, advantages, etc.

A modern one-page theme with a clean design for presenting mobile applications, easy to customize, has 12 ready-made display options, web fonts, icons, parallaxes, lightboxes, built-in Visual Composer, Slider Revolution and much more.

Download Demo

One-page landing page with extensive customization options, built-in visual page builder, Google Fonts support, WooCommerce-based e-commerce, Slider Revolution and much more.

Download Demo

An excellent responsive theme for presenting mobile applications, built on Bootstrap with support for Google Fonts and Google Maps.

Download Demo

A multi-purpose modern theme with a clean design, can work in single-page and multi-page modes, has 4 home page design options, supports multilingual mode based on the WPML plugin, Visual Composer constructor, Mailchimp newsletters, etc.

Download Demo

Multipurpose theme for demonstrating the capabilities of Bootstrap-based mobile applications, 2 home display options, display support high definition, built-in Visual Composer, one-click import of demo content and all the traditional ammunition.

Download Demo

Landing template for WordPress with clean modern design, focused on showcasing mobile apps for three major platforms: Android, iOS and Windows. Well documented, easy to configure.

Download Demo

Another adaptive landing page for WordPress on Bootstrap with 24 design options, also tailored for presentations of mobile applications and startups. There is a visual page builder and more than 80 built-in design elements, contact forms, integration Mailchimp newsletters and other.

Download Demo

A new adaptive landing page template based on the Warp 7 Framework for lovers of lightweight, modular websites. Suitable not only for mobile applications, it is also quite suitable for other areas.

Download Demo

A simple modern theme to showcase mobile application with two home page design options, support for Retina displays, a built-in Visual Composer designer, Slider Revolution slider, one-click content import, mega menu, more than 600 fonts and much more.

Download Demo

Multipurpose one-page WordPress theme for demonstrating mobile applications, startups, personal websites. Built on Bootstrap, built-in Visual Composer, Revolution Slider, contact forms, shortcodes, icons, etc.

Download Demo

Mobile application landing page template with 3 home page options, 20 design options, simple customization, visual page builder Visual Composer, support for the WPML multilingual plugin.

Download Demo

Inexpensive multi-purpose responsive WordPress theme with 23 ready-made design options.

Download Demo

A modern multi-purpose theme with a professional responsive design for presenting mobile apps and games. On board Visual Composer, support for the WPML multi-language plugin, Mailchimp newsletters, forms feedback Contact Form 7.

Download Demo

Multi-purpose optimized landing page template for mobile application developers, software products, startups, creative and design agencies. 4 home page design options, easy customization using the built-in WordPress customizer, visual page builder with 40+ design elements, Revolution Slider, 50+ shortcodes, 500+ icons optimized for Retina displays.

Download Demo

One of the fastest one-page responsive themes on ThemeForest, perfect for startups. 12 ready-made designs, one-click import of demo content, easy customization, clean code, Visual Composer page builder, Revolution Slider, WooCommerce e-commerce support and much more.

Download Demo

The developer claims that with the help of the Helium theme, your landing pages will turn into a powerful marketing weapon. It’s hard to argue - the theme is very modern, built on Bootstrap, SEO-optimized, has 10 main display options, a slider, 1000+ fonts, built-in Visual Composer with 50+ design elements, support for WooCommerce, Mailchimp, Google Map, Google Fonts, Contact Form 7, portfolio and much, much more.

Download Demo

A very stylish theme with 7 home page layouts, 6 header display options, 5 footer options, built-in Visual Composer with Ultimate Addons, Slider Revolution, WooCommerce, One Page Navigator, WPML support and one-click demo content import.

Download Demo

A modern, responsive theme with a clean Bootstrap design for software distribution sites. 9 home page options, 8 color schemes, 3 header design options, support for Twitter, YouTube, Font Awesome, etc.

Download Demo

A creative one-page theme with responsive design, 17 ready-made design options, support for Retina displays, built-in Visual Composer, Slider Revolution, Google Fonts support, various parallaxes and animations.

Download Demo

A responsive landing page template with a clean, modern design and extensive customization options, perfect for mobile apps, products, and startups. Built-in Visual Composer, one-click import, multi-language support on WPML, contact forms Contact Form 7, Revolution Slider and much more.

Download Demo

A very beautiful template that will give your mobile app website a professional look without making it boring. You can choose among three options home page, each of which looks simply wonderful. The color scheme of the future online project can be changed as you wish. In addition, drag-and-drop functionality allows you to work with content without delving into the code.

Download Demo PaPay

An excellent template that will allow you to build the desired online project without spending a huge amount of money on it. It offers a wide range of options for personalization appearance site. And the Elementor builder will allow you to forget about the code and everything connected with it. Don't forget to use a mega menu to make it much easier for users to navigate your site.

Download Demo Momex

Momex is a modern template that, like all other ready-made solutions in this collection, allows you to build an impressive online project. Users are offered a huge selection of options that can be used to improve both the appearance of the site and its functionality. For example, among the four blog layouts, anyone can find an option that they will definitely like. And the package of Cherry plugins will please those who want to present services in a way that will convince the target audience to choose them.

Download Demo

Consor is a wonderful template that can present any business in the most memorable manner. Therefore, I can recommend it for creating mobile application sites. In its package you can find a variety of header options, with the help of which the uniqueness of the online project is also achieved. And WordPress Live Customizer will make it possible to work with the colors and fonts of your future online project without additional effort.

Download Demo

A fully functional and flexible template that is sure to attract a lot of attention. It includes many ready-made pages that will help you present your services, create a gallery of projects, and do much, much more. Together with Elementor-builder, creating a website will turn into pure pleasure. After all, it allows you to simply drag and drop selected content to the desired location on the site.

Download Demo In conclusion

As you can see, there is plenty to choose from. You can also look at topics in the “Software” category on TemplateMonster. The choice there is not as wide as on ThemeForest, but there are also some interesting things. Let me remind you that when choosing a premium theme for your site, you should not get hung up on its subject matter. The main thing is design, structure, and any theme can be “attracted”. I talked more about how not to screw it up in one of my previous articles.

Subscribe to my telegram and be the first to receive new materials, including those not on the site.

I adapted this template to the standards of browsers of such platforms as IOS (3.1+), Android (2.1+), Blackberry (6.0+), Windows Phone 7, as well as Opera mobile for Android, which is gaining popularity. I would like to note that all standard browsers (with the exception of Windows Phone 7 which has IE9) are based on webkit.

What is the difference between developing desktop sites and sites for mobile devices? Next, I will talk about some tricks that will help you get around many problems.

Which resolution to choose and the viewport meta tag

It would seem that we should have a question about what resolution to use as the basis for our site? After all, devices with 230x340 (for example HTC Wildfire S), and about 800x480,960x640 (HTC Incredible S, iPhone 4), and even 1280x720 (HTC One X) are relevant now. The viewport meta tag comes to our aid, which will solve the problem with resolution and scaling.

  • width=device-width - the value is set by the device itself
  • initial-scale=1 - the initial scale is set to 1 (i.e. 1:1)
  • maximum-scale=1.0, user-scalable=no - scaling is prohibited (I would like to note that even with these parameters, HTC will still persistently scale, and the developers said that this is not a bug, but a feature)
A little about graphics

Even with this range of resolutions, I should note that most mobile devices, having a high resolution, use it not to expand their working space, but to increase clarity (more on this). In other words, their pixel saturation (DPI) is several times higher than smaller resolutions. This leads to the conclusion that devices with a large PDI actually compress the site 2 times in order to obtain the same dimensions as in devices with a lower resolution (for example, in Apple devices with a retina display, there are 4 times more dots on the same area of ​​the screen, which increases definition). We can see the result more clearly in the picture below.

Now that we know how screens with high DPI work, it’s worth thinking about the correct display of all elements of our Web site.
Let's start with elements such as fonts, borders and other similar elements. All of these elements are essentially vector objects that the browser can scale without problems, so let's not dwell on that.
The situation is different with pictures and background images. After all, if we save the background image on the basis that we have 320x480, then devices with a denser DPI will not be able to appear in all its glory to us, and all efforts in conveying the clarity and beauty of the image will come to naught, since they will actually increase it by 2 times (and no matter how well the browser scales, quality is always lost when software increases the size). This is where a trick comes to our aid! I'll try to explain with an example. We have a website in the header of which there is a certain background that occupies 320px in width. So, in order for our super clear screens to display this image at 100%, the original image should not be 320x50 but 640x100 (exactly 2 times larger) , and already with using css set background-size: 320px 50px;. We do similar shamanism with images in the form of img.

We optimize queries

Due to the fact that Android, BlackBerry, IOS and Windows Phone 7 fully support Data-url, we can significantly reduce the number of requests by implementing all background images in css. In addition to query optimization, we have a huge gain due to css caching.

Problems with sprites and pictures

Due to the fact that our browser compresses the content and scales it to a particular size, it may incorrectly round the sizes during calculations, and therefore, when gluing sprites pixel-by-pixel, a stripe of the next element will appear. In order to avoid this, it is worth making a gap of a couple of pixels when gluing.

Small problem with image formats

I also encountered an unpleasant problem on some devices related to image formats. Again, I’ll give an example: there are 2 images saved using Save for Web in Photoshop (one of which is a linear gradient that stretches along the Y axis, and the second is some kind of image that is cut out with a piece of the gradient, and in fact should fit into repeating gradient), but in different formats (png and jpg). So on some devices one picture is lighter and the second is darker. So to solve this problem I had to save both images in the same format.

Hiding the URL bar

Since we don’t have that much space on our device, it won’t hurt us to win an extra couple of dozen pixels. And we can find them by hiding our URL bar. For this we have a simple script:

AddEventListener("load", function() ( setTimeout(hideURLbar, 0); ), false);

function hideURLbar() ( window.scrollTo(0, 1); ) But I note that this script can interfere with us if our link leads to one of the anchors new page

(in this case, we will be scrolled to our element, and after loading the page will be returned to the top), but this can easily be avoided by doing an additional check of our URL.

Visual effect of clicking on an element

For example, for iOS we can achieve the click effect using the pseudo-class: active. But it will work even if our element is in focus when scrolling the page, which is not very nice. Therefore, I decided to write a small script that will emulate a click and cancel it when scrolling the page.

Var scroller=false; $("a").live("touchstart",function(event)( var elem=$(this); clickable=setTimeout(function () ( elem.addClass("active");), 100); )) ; $("a").live("touchmove",function(event)( clearTimeout(clickable); scroller=true; )); $("a").live("touchend",function(event)( var elem=$(this); clearTimeout(clickable); if(!scroller) ( elem.addClass("active"); setTimeout(function ( ) ( elem.removeClass("active");), 50); else ( elem.removeClass("active"); ) ));

Removing the frame and highlight from links and buttons

Probably every user has noticed that when you click on a link, it is framed and highlighted. This effect can greatly spoil the designer’s idea. Here a kind of style reset comes to our rescue (tested in all webkit browsers, and these are native browsers IOS, Android, BlackBerry)

*( -webkit-text-size-adjust: none; /*fix a bug in IOS with scaling in landscape*/ outline: none; /*remove the frame around links and buttons*/ -webkit-touch-callout: none; /* if necessary, disable text highlighting*/ -webkit-tap-highlight-color:rgba(0,0,0,0); /*remove the background highlighting of links and buttons*/ )

fixed support Because mobile technologies Now they are moving forward very quickly, and at the time of writing the article, the percentage of browsers that do not support fixed is approaching zero, I will not go too deep into the description. I’ll just say that for these browsers we should use iscroll. I will also describe regarding the dynamic connection of scripts (needed in order not to include an extra file for normal browsers)

//old IOS version detecting var OSName="Unknown OS";

if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; var bversion=parseInt(jQuery.browser.version,10); if((OSName=="MacOS")&&(bversion

IN

in this example

I checked that if it is an Iphone and the browser version is less than 534 (it does not support fixed). I dynamically include the fixing.js script

CSS3
Also, don’t forget that we can already use some css3 properties to their fullest (just don’t forget about the prefixes moz-, webkit-, o-). For WP7, feel free to connect pie.htc.

Desktop link for IOS It will probably be no secret for iOS users that in Safari you can place a link to a website on your desktop. Here is an example of such a link to Forismatic. Below HTML example

code for the icon (IOS itself will scale it up, add rounded corners), announcements that

this link

you need to open it as an application (runs in full-screen), as well as code that hides the URL bar. If desired, you can even show a splash window. - announces that it would open in full-screen, hiding the URL bar - change the color of the status bar to black (available values ​​are default, black, black-translucent). default default - link to the icon that is displayed on the desktop. We can see a live example of everything described above.

Greetings, my dear blog readers. Ruslan Galiulin is in touch. Today we will talk about mobile versions of websites that every website or blog should have in order to move to the TOP

search engines . In the article I will provide style codes and ready-made examples of page layout that you can download to your computer. If your site is still not mobile, I recommend using my advice or contacting professionals - http://www.Mobile-version.ru who will do everything according to search engine standards. Using the same link, you can check your site for mobility.

Mobile Friendly today is not just about taking care of visitors, but an indispensable condition for promotion.

When a website is created from scratch, the Mobile First approach is used. But most have old work projects. The main question that the mobile version of the site raises in such situations is how to make it without spoiling the existing template?

There are three approaches:

  • A separate address and layout - placed on a subdomain like m.site.ru. Redirection occurs through a server redirect to the user agent.
  • Responsive design - the url and html remain the same as in the desktop format, but in CSS media queries provide rules for different screens.
  • RESS is a responsive design, the address remains the same, but the server sends style sets depending on what type of hardware is requesting the page.

For owners of old projects optimal choice- use of adaptive layout. Let’s look at how to do this with your own hands and without using unsafe plugins step by step.

Mobile version of the site: how to do it right

Further actions will require confident basic knowledge html and css or the ability to quickly google incomprehensible things.

Information for beginners: in CSS, words before curly braces mean specific chunks html file, which they are responsible for displaying. They are often written with a dot or hash - #place (property: value;).

Step 1. Remove restrictions.

Owners of rubber layouts can skip this step. The rest will have to work harder.

Width - we look for large sections in the code with a rigidly defined display. If the parameter is specified in pixels or points, you need to change its value to percentages, ems and other units that are sensitive to the environment. Often the main container or content area has a fixed width - in most cases the restrictions are removed by replacing it with max-width.

Pictures - instead of clear sizes, we write properties for the img tag, which will make the images adaptable. Photos will change proportions within their parent containers.

img (

Max-width: 100%;

Height: auto;

Tables - you won’t be able to set them to be fully responsive, but you can make pages with them suitable for mobile devices by adding this code:

table (

Display: block;

Width: 100%;

Overflow-x: scroll;

Overflow-y: hidden;

Ms-overflow-style: -ms-autohiding-scrollbar;

Webkit-overflow-scrolling: touch;

Wraps are specified by the float property. Setting this parameter will allow blocks to move depending on window parameters, adjusting to elements with a stable position or within parent containers. Standard div elements are translated by default each to new line. For example, placing 1000 px div blocks of 200 px each in a container, you can see the following picture.

The blocks stood on top of each other. Adding a wrap removes line breaks and lines up the elements in all available space.

Step 2: Plan your content reorganization.

Find out what parts of your desktop site should be displayed on mobile devices. To do this, answer yourself these questions:

  • Which blocks perform only decorative functions? - Most often these are sliders, sidebar decorations, questionnaires, random photos.
  • What do visitors ignore? - Heat maps of clicks and paths will help answer this question. We will mercilessly hide the least active elements.
  • What must definitely remain in mobile version? - Usually this is advertising, a feedback form, subscriptions or social media buttons.
  • Think about how the site should look on tablets, smartphones and small old phones - you can set a different look for each device.

Step 3. Convenience.

Navigation: phone screens are too small; a regular website menu rarely fits into such a frame. It is customary to install a menu that drops down using a button.

Content Area: For phones, it's common to set the main block width in CSS to 100%, depending on the available space. This means that text, modules, advertising, and sidebar content will be displayed in one column on small devices.

Sensors: Fingers are not as precise as a mouse, give them plenty of room. The space around links and other active elements must be at least 28 x 28 pixels.

Help your visitors define active space - indents, highlights, color changes and other things that can be set for touches, write a hover pseudo-class for links and buttons.

Implementation of Media Queries with examples

If you have ever created CSS tables for printing, then you already have an idea of ​​​​the possibilities of assigning individual styles depending on the conditions.

Media queries are logical expressions; accessing them implies an answer with a true or false parameter. If the query result is true, that is, the user agent or device dimensions match the specified media type, then the style rules specified inside the media block are automatically applied.

Media queries can be assigned according to the following parameters:

  • browser window width and height;
  • device width and height;
  • orientation - landscape or portrait mode;
  • screen resolution.

The current list of arguments is available in the official specification.

Let's move on to examples. There is a ready-made template, the size of its content part is 1000 pixels, all internal elements and details are configured in relation to this parameter.

If the user's screen is narrower than the specified content part, a scroll bar will appear. Floating design elements can behave in unpredictable ways - bumping into each other, blurring, or narrowing too much.

First of all, we remove the fixed size that creates the band so that it does not interfere with the settings. In our template, this is the navigation wrapper. In a reader layout, this can be one or more elements. If you find it difficult to determine, open the browser developer tools - using the block model view, find the element that does not fit into the screen dimensions.

To fix this, remove the fixed frames by writing in the template styles:

@media only screen and (max-width: 1000px) (

Nav (width: 100%; )

Now, if the user’s screen width is less than 1000 px, then the width of the menu will be equal to 100% of its size. The main version of the template looks the same as before. Replacing the property removed the bottom scroll bar when shrinking the screen.

But the blocks still look dubious - let’s change their display, increasing the width by percentage to the required size.

We add to the same mediaquery:

Block (width: 35%;)

How to find out the optimal sizes for the blocks of your site? Calculate manually or take any ready-made grid as a basis - fluid grid. You can focus on existing standards: in two-column layouts with a window width of 980-1050px, the wrapper is taken as 95%, the content - 60%, and 30% is left for the sidebar. The remaining space is used to form borders and margins for neatness.

However, you can use box-sizing for the content so as not to calculate pixels every time, but to work according to the overall dimensions.

Let's move on to setting display on screens with lower resolution:

@media only screen and (max-width: 600px) (

Block (

Float:none;

Width:85%;

Margin: 1em auto;

If the screen is less than 600 px, then our blocks should fit into one column - remove the wrappings, set new indents, center and change the width. Most often it is set to 100%, but if for some reason this is inconvenient, we set our own size.

This way you can set not only the dimensions of content blocks, but also their display. For example, prohibit the display of large elements, replacing them with any convenient ones.

Let's demonstrate the possibilities using the example of changing colors and displays.

The smartphone version hides the main menu and turns the block color blue, while the larger screen displays the design without these changes.

Hiding the navigation is required in most cases - it is replaced with a button. It is more appropriate to do this using javascript; you can use ready-made solutions.

Edits are made pointwise, the range can be limited both above and below. It's fast and convenient - in one line you specify separate CSS for different devices without affecting the main view of the site.

You can declare @media rules anywhere within an existing style sheet, or you can create a separate one for these declarations, and then import it into the main CSS using the @import rule.

Mobile version of the site: how to do it and what to pay attention to

MediaQuery is understood by all modern browsers, but it will not work in IE 8 and below. The problem is solved by turning to older IEs using conditional comments. They need to be written in the template code, not in the CSS.

The script itself is available on GitHub (https://github.com/scottjehl/Respond), adds support for minimum and maximum dimensions and media queries to old IE.

Another problem is that responsive design involves the use of Html5, which is again incomprehensible to older browsers. Treated with hack:

Document.createElement("header");

Document.createElement("nav");

Document.createElement("section");

Document.createElement("article");

Document.createElement("aside");

Document.createElement("footer");

The code is written in html; in addition, block display of the created elements is set in CSS:

header, nav, section, article, aside, footer (display:block;)

Let's immediately touch on the question - how to make sure that some scripts are displayed only with the specified screen parameters. If you use jquery, you will need to add a simple script to the template code. The numbers change to the required ones. It reads like this: if the window width exceeds 980 pixels, the script specified in the path is applied to the page. You can specify several, the syntax is written by analogy using a semicolon inside curly braces.

If ($(document).width() > 980) (

$.getScript("path to script");

Another point is how the iPhone’s mobile browser should process the transmitted content, and whether its increase is allowed. To do this, an initial scale is written in head:

All that remains is to check the correctness - for this you can use your own browser and phone or turn to services.

If the site is redesigned to local server, correctness can be determined in ami.responsivedesign.is . For correct display, Denver owners will need to change the encoding to utf-8 by editing the server httpd.conf file.

The service will demonstrate what the project looks like on different devices.

Additionally, the template is tested https://developers.google.com/speed/pagespeed/insights/ or in a special form https://www.google.com/webmasters/tools/mobile-friendly, as well as in webmasters.

In Yandex this looks detailed, but Google will simply report that there are no problems.

If everything is done correctly, there will be no scrolling or unnecessary elements. The mobile version is ready, and now you have learned how to make it yourself. If the material was useful to you, then like and subscribe to the blog newsletter. All the best.

Below, by clicking on one of the buttons, you can download 2 examples of the folded page in this lesson and just work with the finished pages and copy the code.

Sincerely, Galiulin Ruslan.

In this post we will talk about a mobile template for Wordpress. The template is very beautiful, functional, with excellent usability and designed specifically for mobile platforms and tablets.

The template has a convenient menu that can be configured in black and white or choose a different color scheme for display. The template is made for the Wordpress engine including all the necessary pages and is complete in its assembly.


In this case, we have before us a typical mobile blog template. Given the dynamics of the transition from desktop computer devices to their mobile incarnations, you should make a small effort to increase the impact of your blogs in the mobile Internet environment.


Interesting in all respects, the Dot Mobi mobile template will find many applications in your Internet projects. Fresh design, professional layout, light weight and excellent usability will find many supporters to work with the template for a mobile site immediately after downloading.

This is one of those mobile site designs that you don't want to part with and keep for your own sites. However, this will not be the case and will be at odds with the principle of presenting information on the site. Therefore - take it.


Publications on the topic