treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Mobile development/responsive design. Where am i going wrong?

  • My very first site, and I am trying to include smartphone support. I tried to do all this without having a separate css file but rather with media queries. Where am i going wrong? Link to the site.

  • Firstly, it seems to be working responsively on my end using Chrome. All I see is a single style-sheet with media queries at the bottom so what are you actually asking or did you solve it? #confused. ;)

    Usually the reasoning behind wanting a single file is to save HTTP requests and bring up performance, however in your case you are using a 9.9mb size background image and an auto-loading youtube video. You can make it as mobile "responsive" as you like but if you don't account for performance, load time and especially bandwidth, your still not supporting mobile users.

    Take a look at some image optimization tools, css/javascript compressors etc. Then worry about http requests and responsive design.

  • What I am saying is that particularly on smartphones, it for lack of better words, seems zoomed out? Just a smaller version of a compressed chrome window.

  • You need to use the viewport meta tag so that mobile devices know not to zoom the page out:

    <meta name="viewport" content="width=device-width, initial-scale=1">
  • Do you have a smart phone? I prefer the full site always.

  • @joshuanhibbert you sir are fantastic.

  • @matt_sanford Glad I could help!

    @Eric Responsive design done correctly will still give you access to the full site, no matter then device you are on. The layout will just be more device friendly.

  • Couple of things I would recommend @matt_sandford.

    Check out FitVids.js (by Chris Coyier & Dave Rupert) - will help downsize/upsize that video.

    Hide, or move the twitter & social links down on smaller screens/mobile. The content should not be a few screen scrolls away, it should come first and then be followed up by less relevant stuff.

    Maybe look at an alternative menu for the nav when on mobile/small screens as it will take up a lot of space. Turning it into a dropdown using JQuery can be a good solution.