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
-
Ezard19927ySounds like a job for <insert favourite CSS preprocessor here>
(personally I like SCSS) -
@incognito it became a habit when I first started with css, I didn’t like the way px treated my product while changing zoom levels etc *certain things*. To me, it also respects user preferences.
-
Root825997y💛 rem's
Though it's an odd choice for padding if you're not also setting font-size with rem's.
Also, you should look into Sass or Less. I highly recommend Sass/scss! -
@Ashkin thank you, I’ll definitely check them out!
And if you get a chance, check this out as well! https://css-tricks.com/theres-more-... -
Root825997y@AnonyOps
The first link is interesting, but I dont like the idea of overriding rem's purpose.
The second's unitless line-height looks useful; I'll have to experiment. -
@Ashkin I can see why, and let me know how your experiment goes! How is Sass and scss?
-
Root825997y@AnonyOps Sass is heavenly.
• Nested rules!
• Global vars for colors and sizes
• Functions for working with colors, e.g. `transparentize()`
• Functions (mixins) for generating styling given arguments (think `$button($branding-green, $branding-white)` for making a green button class)
• Ability to include the styles from another selector (extend)
(Scss is Sass with more CSS-like syntax; it's what I usually use) -
@Ashkin I... did not know why I haven’t tried it before! I’m going to give it a try tonight and see how it treats me; thanks for the suggestion! Hopefully it saves me some of the pain and heartache I’ve endured in the past!
Almost done with my personal business website... kill me? Plz. I’ll pay.
random
music keeps me sane
du hast