Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

px or %? which one is better for dimensions ?

Featured Replies

They both have their role; it depends on what you're trying to do. Pixels are more of the "de facto" measurement and percentages are for special situations.

 

If you want something which stays a certain size, then you would use pixels. Many websites never use percentages. However, if you're looking to create a trendy responsive website, then you may often need to use percentages to stretch the content to be proportional to the window (or proportional to the parent div). However, percentages get very tricky to work with very quickly (especially when you try to include horizontal margins, padding, or borders) so I recommend using pixels over percentages whenever you can without sacrificing any functionality.

I agree with a lot of what Ron said. It really comes down to what you're trying to do. Although, personally, I think %s are the best thing to use for layout at mobile sizes.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.