Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Nav Bar has added padding which is not in my CSS code

in the "ul" Elememt it shows that it has padding on the left side (padding is green and the orange is margin

but when I looked through what I’ve got in my CSS structure i do not not have any padding at all

My Nav Bar elements

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I tried to fix it by checking through the dev tools but nothing happened and then I tried removing some properties in my CSS but it didn’t make any changes

>Solution :

The user agent stylesheet of the browser itself is applying that padding. If you want to get rid of it, you’ll need to override it by setting:

ul {
 /* All your other ul styling here... */
 padding-left: 0;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading