How to debug HTML/CSS for iPhone/iPad performance?


Tags: html,ios,css

Problem :

I am creating a page that should work fine on both desktop and mobile.

On desktop I can use Chrome Developer Tool or Firebug to debug/adjust every details quite easily. But how do I make it perfect on mobile?

Is there anyway I can turn my Chrome to a iPhone-sized view?

Thanks!



Solution :

Chrome's debug tools let you set the constraints of the page you're viewing.

  • F12 / right-click [Inspect Element]
  • Click the gear icon (bottom right)
  • Check [ ] Enable under Overrides
  • Set your User Agent, Device Metrics, Geolocation and Device Orientation

    CSS Howto..

    how to change 'inner' lineheight of css text

    How to force enter key to make a line break inside iframe editor

    Portrait screen with 2 pages but only one of them should show

    How to keep a link underlined after it is clicked and then hovered over

    how can I hide empty cells in a table with bootstrap 3

    How to center and span table heading (row)

    How to use css for the hover effect in another div?

    how to add more specificity to css class .background-color-blue so it overrides default div's background color

    How to specify image paths in CSS files?

    How to avoid using JavaScript with CSS attribute selector

    How to close popup

    How do people have long segmented web pages? [closed]

    How to implement dynamic layout columns by using the `content_for?` method?

    How to call and hide lists using two buttons - using Javascript HTML CSS?

    Why will show() only work for fields that are hidden using inline css?

    How to program a CSS3/JQuery/Flexslider carousel with visible sides

    How can I determine the background image URL of a div via JavaScript?

    What CSS properties govern how a webpage reacts to window resizing?

    How can I line up the two containers in view?

    how to overwrite button's non-hover state colour to grey, but when hover button show the colour (with css framework)

    How to create a 'p' tag using css [closed]

    how to make a line between div boxes - simple timeline experiment

    How to change an input button image using CSS?

    How to replicate this table layout in HTML4/CSS2 (incl. vert-centered rows)

    how to make an ul lay out horizontally?

    How to remove the margin top from a div with display table-cell?

    How to make this character to be placed at the right side of its container?

    How to display Bootstrap button label vertically using CSS?

    How to change background [closed]

    jquery-ui icons not showing in production environment