Комментарии:
Any time I say pseudo-element in this video, I mean ::before and ::after. As the title of the video says, ::marker is a pseudo-element. I'm just so used to saying it to only refer to before and after, and I didn't realize it until I was editing. Sorry about that!
ОтветитьI really love the way you CSS !!!
ОтветитьTo center icons center and nice fit with li element I still prefer to add span inside li element and make li display: flex and align-items: center;
ОтветитьDoesn't list-style do the same job? I always found custom icons on lists to be easy to implement.
ОтветитьSir,
Where do you get the latest update on web development
thanks sir You solve my issue
You are awesome teacher
I love they way you guide us
😃🤩
ОтветитьDoes somebody know how to make "content" changes work on mobile chrome?
Ответитьthanks
for this video, but i have a problem, not all unicode icon work for me. In my case i see only the plus icon unicode work, but others no.
Hey! Does anyone knows how we can change it's size?
ОтветитьJust curious, is it possible to change only the second marker and leave the rest as a bullet?
ОтветитьPure Gold , as usually!
Ответитьol's are a whole other story
ОтветитьHow do you adjust the spacing between items? Line height doesn't do work as it messes with items that cover more than one line.
ОтветитьIt's a long time since I learned something delightingly new in css
ОтветитьI see the icon as a small square. Can't see it. If I copy de code I just see the text of the code. In some moment font awesome changed and starting requiring a code for a kit that is received in your email account. I remember needing to declare it in the head of html fight
Ответитьhohoho
ОтветитьThanks!
Ответитьthis, is, awesome. ::marker is the new king of lists!
ОтветитьDoes this not work on Safari for Font Awesome icons?
ОтветитьLove your videos Kevin! <3 can you tell me what font-family are you using in Codepen?
And also: how can you add an svg to content property? 🤔
Thank you! 🙏🏻
Can the marker be moved up and down to better lineup with the text if needed.
ОтветитьHi Kevin,
I just discovered your channel yesterday and I've been binge watching your videos. It's amazing how much I was able to learn in such a short amount of time thanks to the way you explain and show things. Thank you for creating and sharing these videos!
I'd like to ask you something about the ::marker element. Is there a way to use it for unordered lists so that the markers are aligned with the rest of the content and the texts of the list items stay aligned even when those texts continue on a second line?
I love your elegant solutions and I'm looking forward to your solution for this. Thank you in advance! :)
Excellent video. I have 1 question. Say I have a long string of text that wraps onto another line, is there a way to align the marker with the text.
e.g.
//Unwanted behaviour
* verylongtext onto new lines
keep on going and going and going
and going and going
//Desired behaviour
verylongtext onto new lines
* keep on going and going and going
and going and going
I believe this is not possible due to the way pseudo elements work
As someone who designs cruise websites, believe me when I say, we would use anchor bullet points 😂
Ответитьyou sir are a legend!
ОтветитьI would really like to see a video along the lines of "Things we used to do with JS, now available to CSS."
ОтветитьHey Kevin, you are my all time favourite.
A small question here;
If I am using the font-awesome npm package, do I have to set the font-family to font-awesome, in case to use any FA content like you showed !!!
You can just add a SPACE after the icon code in the CONTENT element. All the extra coding to do something as simple as add some space after a bullet icon is totally unnecessary. Why use padding or margin when a simple space will do?
ОтветитьIf you're using Font-Awesome for the bullets, are the contents of the ::marker automatically aria-hidden? You mention you can use SVGs but promote Font-awesome. Shouldn't people avoid Font-awesome because of the accessibility issues?
ОтветитьGreat stuff as always - though sadly Safari (14.0.3) does not seem to support the 'content' attribute while using 'marker'.
ОтветитьHow do we access the content of the ::marker. The getComputedValue() works on ::before and ::after but not on markers.
ОтветитьGreat Job buddy !
You channel has become my daily inspiration.
Using what I learn professionally as much as on personal projects!
love it,
Keep up the great work !
How can I set display:none to a ::marker? :(, because a theme in wordpress hard-coded marker to each list, and I can't remove it with list-style: none; ... and I also can't use display: none; to these ::marker pseudo-elements..
ОтветитьGreat video! For the li padding, you could use: padding-inline-start: 0.5em; to support rtl also.
ОтветитьMan, u looking handsome! 👊😂
ОтветитьBut margin-right and padding-right do not produce any effect on the ::marker pseudo element's position relative to its parent . . .
ОтветитьTHIS I did not know. Thanks Kevin!
ОтветитьThanks again man. <3
ОтветитьSafari doesn't support the content style on ::marker which, to me, is the most important one.
ОтветитьHow would use content to refer to my own svgs?
ОтветитьI like the fact that you videos are short and to the point. I hate sitting through long presentations for the one thing I want to learn. I end up just bailing and looking it up on stack overflow or something similar. With your presentations I don't have that issue. I look for the video that covers what I want to learn and you are very thorough, but very concise. Great job.
ОтветитьNot “marker“, changed everything, “Kevin“ did! Thank you so much, dude!
ОтветитьNice tutorial, but I wouldn’t endorse using icon fonts. They are not always friendly to screen readers, especially outside of pseudo-elements, and they needlessly take up a lot of space. SVG = 🎉
Ответитьisn't this exactly the same as ::before? what are the advantages
Ответитьthank you for the great content, again and again!
ОтветитьSolid vid's, really appreciate your channel. Thanks again!
Ответить