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.

Box model - padding-box : Can anyone think of a use case?

Featured Replies

The content-box and border-box models are very familiar to all of us I would imagine and we can all think of use cases for each. However in the CSS spec there is also the provision for a third model which is the padding-box model.

 

Anyone ever used it or know of a good use case scenario?

Nope, although there may be an edge case where it might, I just cannot think of one!

 

I've only had to use content-box for form elements, everything else I give border-box to.

  • Author

The only thing I can envisage is if you had elements with a border on only one or two sides and wanted to manipulate their widths perhaps. Other than that I can't see any real apparent reason for it.

  • Author

It's been removed from the specs, no one used it, only one browser ever implemented it. No longer a thing.

 

Thank god for that. It'll stop keeping me up at nights worrying about it. :)

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.