Some small CSS tips, that aren't significant enough for their own individual posts π
β€3
Local Storage vs Session Storage
Choose Local Storage for persistent, cross-session data and Session Storage for temporary, tab-specific data, ensuring sensitive information is handled securely server-side.
β€3
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
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://t.iss.one/Web_design3
YOUR ONE REACTION MOTIVATES US π₯Ίβ€οΈ
Source code ππ
https://t.iss.one/Web_design3
YOUR ONE REACTION MOTIVATES US π₯Ίβ€οΈ
Source code ππ
π₯5β€3
π° 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 π₯
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