Web design source code – Telegram
Web design source code
842 subscribers
218 photos
71 videos
82 files
44 links
Advertisements Contact me👇🏻
@We_D5
design web
source code free
https://news.1rj.ru/str/Web_design3
Download Telegram
A visualization of different flex axes in CSS, for different flex directions 😎
4
🔰 CSS: Text with image background

Here is how you can fill a piece of text with a background image which is still accessible! And here is how it works:

👉 Create a background image which fits a rectangular image for the box containing the text

👉 Clip the background to be visible only where there is text, using the background clip properly

👉 Finally set a transparent foreground color for the text itself such that the background is visible
5
This media is not supported in your browser
VIEW IN TELEGRAM
Skate jump game 🏂
https://news.1rj.ru/str/Web_design3
YOUR ONE REACTION MOTIVATES US 🥺❤️

Source code 👇👇
🔥53
🔰 Custom Scrollbar in CSS
3👍2
🔰 CSS Select and element's parent

For a long time, in CSS land, developers were longing for a feature that allowed to select the parent of a particular element.

In this example, we have two .parent elements but with different children. With the :has() pseudo selector, we can select the parent of a particular child. With this we can apply some styling only to that particular parent.

This opens up a lot of possibilities such as

Style a list when a particular element is hovered
Style a card depending on whether or not it has an image
Style a header depending on whether or not it has an hyperlink

The possibilities are endless 🔥
3👍2
This media is not supported in your browser
VIEW IN TELEGRAM
🔰 Responsive Card with CSS Flexbox
4👍3🥰1
🔰 CSS: New Transform Syntax
2👍1
🔅 Loading Animation in CSS
3
This media is not supported in your browser
VIEW IN TELEGRAM
A recent addition to HTML and JavaScript was the Popover API - a set of useful JavaScript APIs and HTML attributes to easily create "modal" like windows inside your DOM.
3👍2
🔰 Highlight text with pure CSS.

:target-text brings precise, URL-based highlighting to modern apps without JavaScript.
1
This media is not supported in your browser
VIEW IN TELEGRAM
Sometimes it happens so you don't have enough space to display a full piece of text. In some scenarios, if the UX allows, we could truncate the text using ellipsis, and here is the snippet for how to do it easily in CSS!


⚠️ Do note that, for this to work, a defined width is required for the text element. (Saved you some hassle in debugging 😁)
1
🔰 CSS text-box-trim

Useful for consistent vertical spacing in UI components, like buttons, headers, and form elements, where extra text padding causes misalignment.
2
⌨️ A visualization of different Flexbox alignment and justification modes

One confusing part might be the difference between align-items vs align-content. The difference is visible only when flex wrap is enabled, and there are multiple flex rows.

👉 Align-items aligns the children in a particular row among themselves

👉 Align-content aligns the entire row itself relative to the Flexbox
1