Tag: Responsive

  • How to stop zoom in on input focus on mobile devices

    How to stop zoom in on input focus on mobile devices

    It has been almost a year since Safari (starting from iOS 10) disabled web developers ability to prevent user zoom.

    We normally the viewport meta for granted.

    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    

    This was a bulletproof solution to make our mobile responsive pages looks the same in all mobile browsers while we ignored that many users struggled to read our hand-picked crafted fonts and our 4K display supported font size.

    We had one more problem. When users tap in any form fields – the webpage zoom in automatically.

    Problem

    Now I know for the fact that – allowing this feature stay unchanged is recommended – sometimes we do need to honour the client request and sometimes this zoom creates unwanted bugs in the UI.

    For example – a date picker input – if zoomed in mobile – would most likely break the UI.

    Continue reading below for the fix.

    You might be interested in:

    https://www.expiredqueues.com/youtube/why-i-never-make-a-youtube-video/
    I walk you through my procastination of how I never end up getting to the point.

    How To Fix

    By default, all mobile browsers force the form element to work as it is. But when a developer sets the font size less than 16 pixels on any form element – mobile browsers intervene and forces the UI or Page to zoom so that the texts are readable enough.

    You guessed it, the solution.

    Apply below

    @media screen and (max-width: 767px) {
      input, select, textarea {
        font-size: 16px;
      }
    }
    

    Please note, you can set any value for the max-width property as per your style guide or UI design.

    Same, the font-size: 16px might be overridden by other higher specificity rules, like other classes, selectors etc.

    It’s a good idea to use !important just in this case. You are restraining the selector only for mobile that means it won’t break your other UIs

  • IT FITs Version 2.0 – Our most popular responsive template

    It’s been a while but it’s here finally. Version 2.0 of our most popular HTML5 CSS3 Responsive Template.

    Major updates since last version:

    • Updated Typography
    • Added large display responsive support
    • Dropped IE8 and older support
    • Removed flashy transitions.

    DEMO

    If you find any issues and want more features, submit them here in Github – https://github.com/cssjunction/It-Fits

    DOWNLOAD

  • It Fits :: Free HTML5 CSS3 Responsive Template

    It Fits :: Free HTML5 CSS3 Responsive Template

    We have something very special today for all of you great visitors. Its an HTML5 CSS3 Responsive Template, with 5 pages excluding 404 page. This template has something not just merely HTML5 new tags, it’s coded using WAI-ARIA roles for enhanced quality. Uses very less images, taking benefits from CSS3 features. Even icons are fonts – hmm super fast page loading.

    UPDATE: New Version 2.0 of this template is available.  Check Version 2.0 –  IT FITS.

    HTML5 CSS3 Template

    Page you will have:

    • Home page
    • Portfolio page
    • Regular page
    • Blog page
    • Contact page
    • 404 page – (default from HTML5 Boilerplate template.)

    I have used LESS css for this projects – for better and faster CSS coding, but you will notice there is pure CSS file is in use. Reason – what I used to do is I do code in LESS and compile it using any software like WINLESS and then I use the compiled pure css files. When you download the template source code, you will find three .LESS files but all complied in one css file that is main.css.

    Too much talk? Head over now:

    Demo

    Browser compatibility:

    All modern browser works fine. Responsiveness is missing from IE7 and IE8. IE9+, Chrome, Firefox, Opera, Safari works fine. You can see how it looks on the smaller device by re-sizing your browser. Or head over to The Responsinator, then give the demo URL and see.

    In terms of visual appearance, IE7 and IE8 has graceful degradation – no support for CSS3 so as, but template presentation is fine.

    IE6??? I don’t talk about it.

    That’s it guys – not much talk. This theme has been released under Creative Common  CC 3.0 Attribution (by) license, so feel free to use anywhere.

    Download now

    Let me know your views and feedback. Please follow us @CSSJunction, if you want to follow the author of template – @shekhardesigner

    More HTML5/CSS3 Templates:

  • Excellent CSS Frameworks for Responsive Web Design

    Excellent CSS Frameworks for Responsive Web Design

    The year is 2012, shame on me – everyone knows that. The year is for Responsive Web Design – yeah now I said good thing. There are a plethora of books which can be so useful for getting started, yet when it comes to developing a project – CSS Frameworks strikes in mind. CSS frameworks are great for rapid development.

    So here I have listed some of the best Responsive CSS Frameworks you can choose to get started on your next responsive projects.

    Now the year is 2019. I had originally listed 10 very good framework of that time. Most of them were obsolete or deleted. I have updated the post to reflect only available frameworks.

    Bootstrap

    You can’t beat this!

    Bootstrap Framework

    Zurb Foundation

    Zurb Foundation Responsive CSS Framework

    inuit.css

    INUITCSS Responsive CSS Framework

    flurid

    FLURID Responsive CSS Framework

    FluidGrids

    Fluid Grid Responsive CSS Framework

    Hope you enjoyed the list :)