Pricing Blog

Whats the best way to think about mobile optimization?

  • fuelmeup-1253749507657830431

    AY EYE

    1 year ago

    I know toddle is mobile first but i always think desktop first. So i want to know how you guys go about mobile optimization, specially when it comes to components and how they should work in tandem?
  • andreasmoller-1253787922638049330

    Andreas Møller

    1 year ago

    Honestly it is entirely up to you if you are building mobile first or desktop first.
  • andreasmoller-1253788773834166323

    Andreas Møller

    1 year ago

    The process is generally the same.

    - Try to make sure to only use fixed units like px when needed, use % when you want the element to resize it self for different screen sizes.

    - Generally avoid setting the height of elements, since the height often changes when text starts flowing into multiple lines.

    - Do as much as you can with % units and flexbox, then use breakpoints for the rest.
  • fuelmeup-1253825387444572252

    AY EYE

    1 year ago

    Thank you @Andreas Møller