CSS by T. Afif
6,057 posts
user avatar
CSS by T. Afif
@ChallengesCss
๐Ÿ’ก css-tip.com ๐Ÿงฉ css-shape.com ๐Ÿ’ซ css-loaders.com ๐Ÿ“ css-articles.com โš™๏ธ css-generators.com ๐Ÿ† css-challenges.com ๐ŸŽจ css-pattern.com ๐ŸŽจ css-only.art
๐Ÿ’ฐ Support Me โฎ•
support.temani-afif.com
Joined April 2021
123
Following
14K
Followers
  • Pinned
    user avatar
    CSS by T. Afif
    @ChallengesCss
    Apr 15, 2025
    If you don't know, my CSS Tip website is open to advertisers. Don't miss the opportunity to promote your product and support my work! Reach a wide audience of passionate web developers (~14.000 active users per month) starting from 150$/month.
    Advertise with CSS Tip
    From css-tip.com
    11K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Feb 24, 2025
    ๐Ÿ’ก CSS Tip! Save this one line of code for the future! css-tip.com/center-uppercaโ€ฆ No more hacky code trying to remove those spaces above and below an uppercase text. You can easily have a perfect centering for the text!
    An overview of the CSS code from the provided link
    Illustrating how to remove spaces above and below an uppercase text
    112K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Nov 20, 2023
    ๐Ÿ’ก CSS Tip! Add a gradient overlay above an existing background using one line of code โœ… No extra element & No pseudo-element โœ… No need to update the background property Demo: codepen.io/t_afif/full/vYโ€ฆ via @CodePen #CSS
    Overview of the CSS from the linked demo
    Two images: one without a gradient overlay and one with a gradient overlay
    122K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Dec 19, 2021
    What kind of CSS loader are you? โšซ๏ธThe Dots โฌ›๏ธThe Bars Why not both at the same time. Check the below single-div collection "The Dots vs The Bars"๐Ÿ‘‡ One div = one loader Demo: codepen.io/t_afif/pen/gOmโ€ฆ via @CodePen #CSS
    00:00
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Feb 21, 2025
    ๐Ÿ’ก CSS Tip! Do you want a set of buttons to be equal in width to the widest one? A few lines of CSS and you are done! css-tip.com/equal-width-buโ€ฆ
    An overview of the CSS code from the provided link
    Showing a set of buttons with equal width. The width is defined by the widest button.
    30K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Feb 24, 2025
    Another interesting one in case you have a lowercase text (without ascender or descender).
    The following CSS code:
.text {
  text-box: ex alphabetic;  
}
    Showing how to remove extra space above and below a lowercase text.
    An overview of the CSS code from the provided link
    Illustrating how to remove spaces above and below an uppercase text
    user avatar
    CSS by T. Afif
    @ChallengesCss
    Feb 24, 2025
    ๐Ÿ’ก CSS Tip! Save this one line of code for the future! css-tip.com/center-uppercaโ€ฆ No more hacky code trying to remove those spaces above and below an uppercase text. You can easily have a perfect centering for the text!
    42K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Jun 8, 2022
    ๐Ÿ’ก CSS Tip! Extend the background of an element outside of its container to cover the full screen width โœ… No extra element โœ… No pseudo-element โœ… No overflow issue โœ… Only 2 CSS declarations Demo: codepen.io/t_afif/full/LYโ€ฆ via @CodePen #CSS
    Overview of the CSS code from the demo in the tweet
    A basic CSS layout with different sections having max-width and centered. One element inside those section is having a pink background that cover the full screen width.
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Jan 17, 2025
    Updating the "inverted radius" shape to add two more variables to control the offset of inner curve. css-shape.com/inverted-radiuโ€ฆ
    00:00
    23K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Feb 13, 2025
    ๐Ÿ’ก CSS Tip! Do you know that One-Time password field? You can create it using only one input and a few lines of CSS. The HTML: <input type="text" maxlength="6"> Code & Demo: css-tip.com/single-digit-iโ€ฆ You can control the number of characters by adjusting the maxlength attribute.
    00:00
    25K
  • user avatar
    CSS by T. Afif
    @ChallengesCss
    Sep 16, 2024
    ๐Ÿ’ก CSS Tip! Using scroll-driven animations, you can link a CSS variable with a range slider and easily update its value! No more JavaScript to do this. A few lines of CSS, one HTML element and you can update any value in real time. @CodePen demo in the reply ๐Ÿ‘‡
    Overview of the CSS code from the demo in the reply
    33K

New to X?

Sign up now to get your own personalized timeline!

Create account

By signing up, you agree to the Terms of Service and Privacy Policy, including Cookie Use.

Terms of Service|Privacy Policy|Cookie Policy|Accessibility|Ads info|ยฉ 2026 X Corp.
Don't miss what's happening
People on X are the first to know.
Log inSign up
✕

Wait! Don't Go Yet 🚀

Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!

No spam. Unsubscribe anytime.