Pinned Tweet
Console – Free Bootstrap Admin Dashboard Template
➡️ Admin Dashboard
➡️ Free Bootstrap Template
➡️ Stat Cards
➡️ Maps
➡️ Charts
➡️ Explore More....
bootstrapbrain.com/template/…
#Free #DEVCommunity #Bootstrap #Admin #Dashboard
27
Imia Hazel retweeted
Everyone is excited about the new align-content that works with block-level elements, but pay attention when you want to center image, iframe, canvas, video, etc.
⚠️ They won't get centered ⚠️
They will look centered but in reality, they are not and this is not a bug!
Imia Hazel retweeted
CSS Tip! 💪
You can create these tab controls with CSS :has() + radio buttons ✨
.tabs:has(input:nth-of-type(3)) { --count: 3; }
.tabs:has(:checked:nth-of-type(3)) { --active: 2; }
.tabs::after { translate: calc(var(--active, 0) * 100%) 0;
width: calc(100% / var(--count));
}
Two CSS :has() tricks here combined with a rendering trick 🤙
The tab control is a container using display: grid. You can use :has() to count the number of tabs in the container:
.tabs:has(input:nth-of-type(3)) { --count: 3; }
.tabs:has(input:nth-of-type(4)) { --count: 4; }
Using the cascade, the last valid :has() gives you the number of tabs 🫶
Once you know the number of tabs, you know how to size the indicator:
.tabs::after {
content: "";
position: absolute;
height: 100%;
width: calc(100% / var(--count));
}
It's a pseudoelement that uses --count to determine its size 📏
The next :has() trick is determining which tab is active or :checked as it's an input [type=radio]
.tabs:has(:checked:nth-of-type(2)) { --active: 1; }
.tabs:has(:checked:nth-of-type(3)) { --active: 2; }
You can use a zero-indexed translation here. If the second input is :checked, set --active: 1, then translate the pseudoelement on the tabs to that position 👉
.tabs::after { translate: calc(var(--active, 0) * 100%) 0; }
The last rendering trick is using mix-blend-mode 👀
The tabs have a black background-color, the pseudoelement is white, and the label text is white. When you use mix-blend-mode: difference on the pseudoelement it will give this effect that the text transitions from white to black sliding across 😎
.tabs::after {
color: hsl(0 0% 100%);
mix-blend-mode: difference;
}
You can totally mix up the colors here though and go with a different effect. The mechanics of how you can use CSS :has() is the main point here 🙏
As always, any questions, suggestions, etc. let me know
@CodePen link below! 👇 (There's even a @tailwindcss play for this one too 👀)
Imia Hazel retweeted
Want to know the secret behind creating triangle shapes? Check my latest article @VerpexHosting
👉 verpex.com/blog/website-tips…
Forget the old obsolete methods and learn the modern ways to create triangle shapes. We can also have cool animations as a bonus!
The triangle🔺 is the most popular shape and I still see old and obsolete methods to create it.
⚠️STOP DOING THIS⚠️
👉 css-generators.com/triangle-…
A collection of CSS-only triangles made with a single-element and modern CSS. With the border-only and rounded corners variations.
Imia Hazel retweeted
Use modern CSS to:
✅ Set a max-width
✅ Center an element
✅ Set a minimum margin
✅ Add a full-width slanted coloration
✅ Make the slant effect responsive
All of this, using only 3 properties and easy to control with CSS variables 🤩
Imia Hazel retweeted
What for what?
🖼️ Frontend
→HTML + CSS
→Javascript
→React
→VueJs
→Angular
→Svelte
🔙 Backend:
→Nodejs/Express
→Python/Django
→PHP/Laravel
→Java
→C#
💽 Database
→MongoDB
→MySQL
→Postgres
→Redis
🖥️ Desktop
→Electron
→Tairi
→PyQt
📱Phones:
→React Native
→Flutter
→Swift
→Kotlin
🖥️ System
→Go
→C++
→Rust
Add more 💬👇
Imia Hazel retweeted
5 anti-patterns to avoid in general.
• Endless planning, less actions
• Resource limitation excuses
• Perfection over progress
• Over commitment
• I'll do it tomorrow
Instead:
• Plan and act
• Use what you've got
• Progress
• Commit one step at a time
• Do it now
Imia Hazel retweeted
Are you looking for a Ribbon Shape? 🎀
I have made more than 100 using only CSS 🤩
👉 css-generators.com/ribbon-sh…
✅ One element per shape
✅ Optimized with CSS variables
✅ Works with any text content (no fixed sizes)
#CSS
5 Best Free Tools to Test Website Speed
➡️ gtmetrix.com/
➡️ pagespeed.web.dev/
➡️ webpagetest.org/
➡️ tools.pingdom.com/
➡️ tools.keycdn.com/speed
#DEVCommunity
7
Imia Hazel retweeted
An interactive version to see how the shape fit its content. Edit the text and see the magic 🪄
Demo: codepen.io/t_afif/full/BaMRQ… via @CodePen
#CSS
💡 CSS Tip!
Another concept of Responsive Ribbon Shape using the same code structure.
✅ Only one element
✅ Works with multi-line text
✅ Optimized with CSS variables and Math functions
Demo: codepen.io/t_afif/full/abXWo… via @CodePen
#CSS
Imia Hazel retweeted
If you need HTML templates for your projects, I recommend you to use htmlrev.com.
▪️ High-quality templates
▪️ Free for commercial use
▪️ 1000+ free HTML templates
Check it out!
Imia Hazel retweeted
Responsive login form with fun animation ✨
Using HTML, CSS and JS.
CodePen link below 👇
75+ Free Bootstrap Code Snippets
bootstrapbrain.com/component…
#Bootstrap
3
Planet – Free Bootstrap Blog Template
#Free #Bootstrap #HTML5 #CSS #Template
bootstrapbrain.com/template/…
10


















