Hi. 4 different web browsers (Firefox, Chrome, Edge and Safari) display quite different proximities between list-style-types and their adjacent data (like text or images).
The proximity between list-style-types and adjacent data is very wide in Chrome. Too much for me actually, and here is an example:
Do you know a way to reset all of these proximities to a single value with JS or JQ, in a similar fashion of resetting CSS properties ?
Mittineague I don’t want to reset the CSS via JS but to somehow reduce the proximity with it (if it’s even possible).
It seems the proximity comes from this user-agent setting that I can’t revert from my stylesheet as the user agent seems to me to be loaded last in the hierarchy…
You don’t need JS for this really… a common way to address such x-browser inconsistencies is to include a reset CSS on top of all your other styles, and then style everything to your liking by hand.
Hm, then there’s something else going on… can you send us a live link, or reproduce the problem on jsfiddle or something? Anyhow, it’s almost certainly not a vendor-prefix issue…
I saw later on, in this thread regarding a similar problem that you already visited my homepage from my profile here and reported you recognize a strange css beahvior for li items there and suggested it might be due to RTLness.
There is no default margin/ padding on the li element. It is the ul element that has margin/ padding applied and where you need to control it from as mentioned in my previous post.