11

Almost done with my personal business website... kill me? Plz. I’ll pay.

Comments
  • 2
    Hi, a backend php dev here, why padding in rem? 😇
  • 6
    Sounds like a job for <insert favourite CSS preprocessor here>

    (personally I like SCSS)
  • 1
    @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.
  • 4
    RAMMSTEIN
  • 1
    💛 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!
  • 1
    @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-...
  • 0
  • 1
    @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.
  • 1
    @Ashkin I can see why, and let me know how your experiment goes! How is Sass and scss?
  • 1
    @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)
  • 1
    @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!
  • 1
    @AnonyOps 😊
    Glad I could help!
Add Comment