I’ve just finished ‘Learn CSS Colors by Building a Set of Colored Markers’ and was wondering why you would put the sleeve/cap over the markers if you were building something like this?
I thought it was going to be a slider or something to select a colour, but it’s just an immovable border.
Very useful course though with all the explanation of how rgb, hex, hsl works etc I was just wondering about the above.
My best guess is that it was just created for CSS demonstration purposes. There needed to be a gradient and this seemed like the best way to do this.
If there was a slider JavaScript would need to get involved and it’d be a little messier. Especially trying to explain how it all works for newer campers that aren’t quite ready for that yet.
Though…another project, after the JavaScript projects before the React lesson, tying it back to the HTML and CSS content lessons wouldn’t necessarily be a bad idea.
If you remove the borders then they don’t actually look like markers but more like discolored soursticks…
The borders are so that they should look like markers with caps on them.
Like @a2937 said if it were to be a slider you would need to use JS.
Hello @ojudgo !
Perhaps, it may be to gently introduce the coding processes in this lesson to people, like me, who need to see it and understand it. It was exciting for me, as somebody who had no coding experience previously, to see the changes and to see how I could work to make the markers and the shadow-box codes. ’
But, this is just a personal experience, and the thoughts are based on personal reflection, not on knowing anything about the courses, other than learning them.
Happy coding!
Just to be clear, a Color Marker is a pen.
If you search for Color markers I’m sure you will find some that look a bit like that. Some will likely have text on the sleeve.
Thanks all, completely my mistake… I somehow never realised that they were supposed to be marker pens, I thought they were ‘markers’ as in showing what the colours looked like.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.