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.

reset stylesheets and p

Featured Replies

Yo yo,

 

Just curious , why is it reset stylesheets always seem to give things like <p> a margin/padding of 0?

 

http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/

 

Isn't it kind of defeating the object when a <p></p> element should really have a margin because its defining the break in a paragraph.

 

Since I have to declare a margin for p further down the cascade I see no use of resets giving p a margin of 0.

The majority of resets will try to reset most of the elements that could have different margins/padding when viewed in different browsers. The reason things like p are reset is because the margins/padding may differ slightly between IE & Firefox for example. When you redeclare the margins/padding of these elements, you're creating a new base from which to work on. Hence why these are sometimes known as 'base' stylesheets.

 

There are some resets which also re declare the reset styles after being reset and give you a solid foundation from which to work on. Maybe one of these would be more suitable to you. Once such example is Tripoli.

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.