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.

How do I stop bullets / lists from indenting?

Featured Replies

hi,

 

I'm creating a side navbar and put each individual link as a list. The only problem is that it causes the links to have a major indent which distorts my layout.

 

help?

 

ravi

Try adding the properties:

 

list-style-position: inside; padding: 0; margin: 0;

 

You may want to just try padding-left: 0 aswell.

  • Author
Try adding the properties:

 

list-style-position: inside; padding: 0; margin: 0;

 

You may want to just try padding-left: 0 aswell.

 

 

Thanks so much :D That fixed it

When it comes to lists I always reset the margin and padding as it usually differs from browser to browser. Some use margin to indent, some use padding.

 

You can even remove the bullet itself by adding list-style-type: none;

And you can set whether the bullets should be inside or outside the UL element.

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.