styling <ul> and <li>, what can prevent this?

I’m trying to style it on here but it doesn’t seem to accept it. I’ve looked through the code and I didn’t see anything that I thought would be preventing this? https://codepen.io/Laing91/pen/RwOGJBe On my phone so apologies for the lack of code, but I had been attempting the below.. ul { List-style-type: circle; }
16 Replies
Tok124 (CSS Nerd)
And how do you want to style it? want want to remove this dot/bullet thing? If so, use list-style:none;
CDL
CDL8mo ago
I’m trying to change the - to a blacked out circle
Jochem
Jochem8mo ago
the - is physically in the text
<li>- Solely responsible for working with Sales team and customers in Scotland and Ireland.
</li>
<li>- Solely responsible for working with Sales team and customers in Scotland and Ireland.
</li>
CDL
CDL8mo ago
… That still doesn’t explain how I can’t add a style then I guess. I don’t think I have a decoration: none; in there
Tok124 (CSS Nerd)
you have the dots
No description
Tok124 (CSS Nerd)
just that you have removed the paddings so they are almost outside this container
Jochem
Jochem8mo ago
^ this is why * { margin: 0; padding: 0; } can occasionally be a bad idea
CDL
CDL8mo ago
Ah.. that makes more sense Removed the css under * and have removed the - in the text, seems better. Thanks people 🥰
Jochem
Jochem8mo ago
always glad to help 🙂
CDL
CDL8mo ago
I’m in my phone so it may be a phone thing but does it black out halfway down for you? Just saved the amendments
Tok124 (CSS Nerd)
otherwise you could also do
ul {
all:revert;
}
ul {
all:revert;
}
or
ul {
margin:revert;
padding:revert;
}
ul {
margin:revert;
padding:revert;
}
Or something like that
CDL
CDL8mo ago
Removing the * margin:0 padding: 0 seems to have kinda screwed up the entire thing but I can't figure out why, I have no padding or margins on the page except padding on my gridParent
CDL
CDL8mo ago
and for some reason I'm getting large amounts of spacing, and then it seems to run off at the bottom into the black? https://codepen.io/Laing91/pen/RwOGJBe
Callum
CodePen
cv
...
CDL
CDL8mo ago
update:
* {
margin: 0;
}
* {
margin: 0;
}
this seems to fix it
Mannix
Mannix8mo ago
lots of elements have default margin applied like all the headings, ul, p, hr so you either nuke them with the * selector or remove it from each element that has it. dev tools is your friend remember 🙂
CDL
CDL8mo ago
yeah got it now, did some dev tooling, thanks mate
Want results from more Discord servers?
Add your server