Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devGaara655y@kamen oh shit. My dumb ass brain forgot to give the link
Here you go
https://medium.com/@so_deep.dev/... -
gyzoor15yLooks good. Wouldn't a element for the badge/ribbony thing be a better solution? In that scenario the content of the ribbon isn't stored in your stylesheet, which might be a problem when having different types.
-
Flamestro915ySo I really liked the article. It would be helpful to have the code fragments in the text highlighted differently than bold. But I still enjoyed the article. Its one way to achieve the card 👌🏼
-
hack64145yIt has been long time since I write css. I wanted to challenge myself and tried to create that card just by looking the picture you posted. Here is my result:
https://codepen.io/bekiruzun/pen/...
I used a different approach. I used borders to create little triangle. -
hack64145yAnd by looking at the code you write, I think you can make css classes prettier. You can use "header" instead of "card__header" which makes css selectors better like ".card .header" instead of ".card .card__header"
-
devGaara655y@hack I like to follow BEM conventions. I usually use scss pre-processor. I did not wanna have to explain what that is in the same post. That's why I wrote
.card .card__header.
.card{
&__header{
}
}
This is how I usually write -
dder22815y@24th-Dragon fair. Especially about the interactivity. But I thought css scales well as well...
I also don’t like the usage of text in ::before.content
You cannot select and copy that text. -
devGaara655y@24th-Dragon Hey bro, I was updating the article and I wanted to give credits for suggesting the change. What do write your name as?
Related Rants
Just wrote an article about how to code this with CSS. I'm new to writing stuff. Would love to hear what you guys think
random
css
pseudo elements