Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Category: CSS

CSS

CSS: Motion Design with Animated Box Shadows

- 02.08.26 - ErcanOPAK comment on CSS: Motion Design with Animated Box Shadows

✨ Animated Shadows = Motion Design Static shadows are boring. Animated box shadows create delightful interactions that bring interfaces to life. πŸ“ Animated Shadow Examples /* Bouncing Card */ .card { transition: transform 0.3s ease, box-shadow 0.3s ease; } .card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 10px 20px rgba(0,0,0,0.1); } /* Pulsing […]

Read More
CSS

CSS: Create Neumorphism with Box Shadows

- 02.08.26 - ErcanOPAK comment on CSS: Create Neumorphism with Box Shadows

🟣 Neumorphism = Soft UI Design Neumorphism blends skeuomorphism and flat design. Box shadows create the soft, extruded look that makes UIs feel tactile and modern. πŸ“ Neumorphism Components // Neumorphism Base .neumorph { background: #e0e5ec; border-radius: 16px; box-shadow: 8px 8px 16px rgba(163,177,198,0.6), -8px -8px 16px rgba(255,255,255,0.5); } // Neumorphism Inset (Pressed) .neumorph-inset { background: […]

Read More
CSS

CSS: Create Glassmorphism with Advanced Box Shadows

- 26.07.26 - ErcanOPAK comment on CSS: Create Glassmorphism with Advanced Box Shadows

πŸͺŸ Glassmorphism = Modern UI Aesthetic Glassmorphism is everywhere. Box shadows and backdrop blur create the frosted glass effect for premium UIs. πŸ“ Glassmorphism Components /* Glassmorphism Card */ .glass-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 8px 32px rgba(31, 38, […]

Read More
CSS

CSS: Create Realistic UI Depth with Advanced Box Shadow

- 26.07.26 - ErcanOPAK comment on CSS: Create Realistic UI Depth with Advanced Box Shadow

🎨 CSS Shadows = Material Design Depth Flat UI is a design dinosaur. Advanced box shadow techniques create realistic depth, improve UX, and make your interfaces feel premium and interactive. πŸ“ Material Design Shadow System /* Material Design Shadow Elevations */ :root { /* Elevation 1 – Subtle lift */ –shadow-1: 0 1px 3px rgba(0,0,0,0.12), […]

Read More
CSS

CSS: Use Box Shadow for Depth and Dimension

- 26.07.26 - ErcanOPAK comment on CSS: Use Box Shadow for Depth and Dimension

πŸ›‘οΈ Box Shadow = Add Depth Flat design is basic. Box shadow adds depth. Realistic depth, elevation, focus. Essential for modern UI. πŸ“ Box Shadow Syntax /* offset-x offset-y blur-radius spread-radius color */ box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Multiple shadows */ box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); /* Inset shadow (inner) […]

Read More
CSS

CSS: Master Flexbox and Grid for Modern Layouts

- 25.07.26 - ErcanOPAK comment on CSS: Master Flexbox and Grid for Modern Layouts

πŸ“ Flexbox + Grid = Modern Layouts Floats and tables are outdated. Flexbox and Grid create responsive, complex layouts with ease. πŸ“ Flexbox Basics // Container Properties .flex-container { display: flex; flex-direction: row; // row | column flex-wrap: wrap; // nowrap | wrap justify-content: center; // flex-start | center | space-between align-items: center; // flex-start […]

Read More
CSS

CSS: Master CSS Variables for Theme Management

- 25.07.26 - ErcanOPAK comment on CSS: Master CSS Variables for Theme Management

🎨 CSS Variables = Theme Management Hard-coded colors are a maintenance nightmare. CSS Variables enable consistent theming and easy updates. πŸ“ CSS Variables Setup :root { /* Colors */ –color-primary: #3498db; –color-secondary: #2ecc71; –color-accent: #e74c3c; –color-background: #ffffff; –color-text: #2c3e50; –color-text-secondary: #7f8c8d; /* Typography */ –font-family: ‘Inter’, -apple-system, sans-serif; –font-size-base: 16px; –font-size-large: 1.25rem; –font-size-small: 0.875rem; /* […]

Read More
CSS

CSS: Create Neumorphism with Box Shadows

- 25.07.26 - ErcanOPAK comment on CSS: Create Neumorphism with Box Shadows

🟣 Neumorphism = Soft UI Design Neumorphism blends skeuomorphism and flat design. Box shadows create the soft, extruded look that makes UIs feel tactile and modern. πŸ“ Neumorphism Components // Neumorphism Base .neumorph { background: #e0e5ec; border-radius: 16px; box-shadow: 8px 8px 16px rgba(163,177,198,0.6), -8px -8px 16px rgba(255,255,255,0.5); } // Neumorphism Inset (Pressed) .neumorph-inset { background: […]

Read More
CSS

CSS: Glassmorphism with Advanced Box Shadows

- 25.07.26 - ErcanOPAK comment on CSS: Glassmorphism with Advanced Box Shadows

πŸͺŸ Glassmorphism = Modern UI Aesthetic Glassmorphism is everywhere. Box shadows and backdrop blur create the frosted glass effect that makes modern UIs look premium and engaging. πŸ“ Glassmorphism Components // Glassmorphism Card .glass-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 […]

Read More
CSS

CSS: Create Realistic UI Depth with Advanced Box Shadow

- 25.07.26 - ErcanOPAK comment on CSS: Create Realistic UI Depth with Advanced Box Shadow

🎨 CSS Shadows = Material Design Depth Flat UI is a design dinosaur. Advanced box shadow techniques create realistic depth, improve UX, and make your interfaces feel premium and interactive. πŸ“ Material Design Shadow System /* Material Design Shadow Elevations */ :root { /* Elevation 1 – Subtle lift */ –shadow-1: 0 1px 3px rgba(0,0,0,0.12), […]

Read More
CSS

CSS: Use Box Shadow for Depth and Dimension

- 25.07.26 - ErcanOPAK comment on CSS: Use Box Shadow for Depth and Dimension

πŸ›‘οΈ Box Shadow = Add Depth Flat design is basic. Box shadow adds depth. Realistic depth, elevation, focus. Essential for modern UI. πŸ“ Box Shadow Syntax /* offset-x offset-y blur-radius spread-radius color */ box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Multiple shadows */ box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); /* Inset shadow (inner) […]

Read More
CSS

CSS: Use Filter Effects for Visual Magic

- 24.07.26 - ErcanOPAK comment on CSS: Use Filter Effects for Visual Magic

🎨 Filter Effects = Visual Magic Images need effects. CSS filters apply visual effects. Blur, brightness, contrast β€” no Photoshop needed. πŸ“ Filter Functions /* Blur */ filter: blur(5px); filter: blur(2px); /* Brightness */ filter: brightness(0.8); filter: brightness(1.2); filter: brightness(200%); /* Contrast */ filter: contrast(1.5); filter: contrast(200%); /* Grayscale */ filter: grayscale(100%); filter: grayscale(0.5); /* […]

Read More
CSS

CSS: Master Font Weight for Typography Hierarchy

- 24.07.26 - ErcanOPAK comment on CSS: Master Font Weight for Typography Hierarchy

πŸ“ Font Weight = Typography Hierarchy Font weight creates hierarchy. Master font weight for better readability, visual hierarchy. πŸ“ Font Weight Values /* Keyword values */ font-weight: normal; /* 400 */ font-weight: bold; /* 700 */ /* Numeric values */ font-weight: 100; /* Thin */ font-weight: 200; /* Extra Light */ font-weight: 300; /* Light […]

Read More
CSS

CSS: Master Pseudo Elements (::before & ::after)

- 24.07.26 - ErcanOPAK comment on CSS: Master Pseudo Elements (::before & ::after)

🎨 Pseudo Elements = Extra Content Need extra elements without extra HTML? ::before and ::after add content via CSS. πŸ“ Pseudo Element Basics /* Basic usage */ .element::before { content: “β˜…”; color: gold; margin-right: 5px; } .element::after { content: ” β†’”; color: blue; } /* Required: content property */ .element::before { content: “”; /* Empty […]

Read More
CSS

CSS: Master Font Sizing for Responsive Typography

- 24.07.26 - ErcanOPAK comment on CSS: Master Font Sizing for Responsive Typography

πŸ“ Font Sizing = Responsive Typography Font sizing affects readability. Master font sizing for responsive, accessible typography. πŸ“ Font Size Units /* px – Absolute */ font-size: 16px; /* em – Relative to parent */ font-size: 1.2em; /* rem – Relative to root */ font-size: 1.2rem; /* % – Percentage of parent */ font-size: 120%; […]

Read More
CSS

CSS: Use Box Shadow for Depth and Dimension

- 24.07.26 - ErcanOPAK comment on CSS: Use Box Shadow for Depth and Dimension

πŸ›‘οΈ Box Shadow = Add Depth Flat design is basic. Box shadow adds depth. Realistic depth, elevation, focus. Essential for modern UI. πŸ“ Box Shadow Syntax /* offset-x offset-y blur-radius spread-radius color */ box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Multiple shadows */ box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); /* Inset shadow (inner) […]

Read More
CSS

CSS: Master Border Radius for Rounded Corners

- 19.07.26 - ErcanOPAK comment on CSS: Master Border Radius for Rounded Corners

πŸ”΅ Border Radius = Rounded Corners Sharp corners are harsh. Border radius creates smooth corners. Modern, friendly, professional. πŸ“ Border Radius Basics /* Single value (all corners) */ border-radius: 10px; border-radius: 50%; /* Circle/ellipse */ /* Two values (top-left/bottom-right top-right/bottom-left) */ border-radius: 10px 20px; /* Three values */ border-radius: 10px 20px 30px; /* Four values […]

Read More
CSS

CSS: Master Overflow for Content Handling

- 19.07.26 - ErcanOPAK comment on CSS: Master Overflow for Content Handling

πŸ“¦ Overflow = Content Handling Content overflows containers. Overflow controls how to handle it. Scroll, hidden, visible β€” choose wisely. πŸ“ Overflow Values /* Visible (default) */ overflow: visible; /* Content overflows container */ /* Hidden */ overflow: hidden; /* Content clipped, no scroll */ /* Scroll */ overflow: scroll; /* Always show scroll bars […]

Read More
CSS

CSS: Master Grid Layout for Two-Dimensional Layouts

- 19.07.26 - ErcanOPAK comment on CSS: Master Grid Layout for Two-Dimensional Layouts

πŸ“ Grid Layout = Two-Dimensional Layouts Flexbox is one-dimensional. Grid Layout handles rows AND columns. Complex layouts made simple. ❌ Complex Flexbox .container { display: flex; flex-wrap: wrap; } .item { flex: 1 0 30%; } βœ… Clean Grid .container { display: grid; grid-template-columns: repeat(3, 1fr); } πŸ“ Grid Properties /* Container Properties */ .container […]

Read More
CSS

CSS: Master Animations with Keyframes and Transitions

- 18.07.26 - ErcanOPAK comment on CSS: Master Animations with Keyframes and Transitions

🎬 CSS Animations = Motion Magic Static pages are boring. CSS animations bring life. Transitions, keyframes, motion β€” engaging UX. πŸ“ Transitions vs Animations /* Transitions (state changes) */ .button { background: blue; transition: background 0.3s ease, transform 0.2s ease; } .button:hover { background: darkblue; transform: scale(1.05); } /* Keyframe Animations (complex sequences) */ @keyframes […]

Read More
CSS

CSS: Master Flexbox for Modern Layouts

- 18.07.26 - ErcanOPAK comment on CSS: Master Flexbox for Modern Layouts

πŸ“ Flexbox = Modern Layouts Floats are dead. Flexbox is modern. Align, distribute, order β€” all with CSS. ❌ Float Layout .container { overflow: hidden; } .item { float: left; width: 33.33%; padding: 10px; } βœ… Flexbox Layout .container { display: flex; flex-wrap: wrap; } .item { flex: 1 0 33.33%; padding: 10px; } πŸ“ […]

Read More
CSS

CSS: Master Font Sizing for Responsive Typography

- 18.07.26 - ErcanOPAK comment on CSS: Master Font Sizing for Responsive Typography

πŸ“ Font Sizing = Responsive Typography Font sizing affects readability. Master font sizing for responsive, accessible typography. πŸ“ Font Size Units /* px – Absolute */ font-size: 16px; /* em – Relative to parent */ font-size: 1.2em; /* rem – Relative to root */ font-size: 1.2rem; /* % – Percentage of parent */ font-size: 120%; […]

Read More
CSS

CSS: Master Overflow for Content Handling

- 15.07.26 - ErcanOPAK comment on CSS: Master Overflow for Content Handling

πŸ“¦ Overflow = Content Handling Content overflows containers. Overflow controls how to handle it. Scroll, hidden, visible β€” choose wisely. πŸ“ Overflow Values /* Visible (default) */ overflow: visible; /* Content overflows container */ /* Hidden */ overflow: hidden; /* Content clipped, no scroll */ /* Scroll */ overflow: scroll; /* Always show scroll bars […]

Read More
CSS

CSS: Master Line Height for Better Typography

- 15.07.26 - ErcanOPAK comment on CSS: Master Line Height for Better Typography

πŸ“ Line Height = Better Typography Line height affects readability. Master line height for better typography, improved UX. πŸ“ Line Height Basics /* Line height values */ line-height: 1.5; /* Multiplier (1.5 Γ— font-size) */ line-height: 24px; /* Fixed pixel value */ line-height: 150%; /* Percentage of font-size */ line-height: normal; /* Browser default (1.2) […]

Read More
CSS

CSS: Master Opacity and Transparency

- 15.07.26 - ErcanOPAK comment on CSS: Master Opacity and Transparency

πŸ‘» Opacity and Transparency = Depth Opacity adds depth and layers. Master opacity and transparency for modern UI. πŸ“ Opacity Basics /* Element opacity */ .element { opacity: 0.5; /* 50% transparent */ } /* Opacity values */ opacity: 1; /* Fully opaque */ opacity: 0.75; /* 75% opaque */ opacity: 0.5; /* 50% opaque […]

Read More
CSS

CSS: Use Filter Effects for Visual Magic

- 12.07.26 - ErcanOPAK comment on CSS: Use Filter Effects for Visual Magic

🎨 Filter Effects = Visual Magic Images need effects. CSS filters apply visual effects. Blur, brightness, contrast β€” no Photoshop needed. πŸ“ Filter Functions /* Blur */ filter: blur(5px); filter: blur(2px); /* Brightness */ filter: brightness(0.8); filter: brightness(1.2); filter: brightness(200%); /* Contrast */ filter: contrast(1.5); filter: contrast(200%); /* Grayscale */ filter: grayscale(100%); filter: grayscale(0.5); /* […]

Read More
CSS

CSS: Master Gradients for Color Transitions

- 12.07.26 - ErcanOPAK comment on CSS: Master Gradients for Color Transitions

🌈 Gradients = Color Transitions Solid colors are basic. Gradients create smooth transitions. Modern, vibrant, professional. πŸ“ Gradient Types /* Linear Gradient */ background: linear-gradient(to right, red, blue); background: linear-gradient(45deg, red, blue); background: linear-gradient(to bottom, red, yellow, green); /* Radial Gradient */ background: radial-gradient(circle, red, blue); background: radial-gradient(ellipse, red, blue); background: radial-gradient(circle at 50% 50%, […]

Read More
CSS

CSS: Master Border Radius for Rounded Corners

- 12.07.26 - ErcanOPAK comment on CSS: Master Border Radius for Rounded Corners

πŸ”΅ Border Radius = Rounded Corners Sharp corners are harsh. Border radius creates smooth corners. Modern, friendly, professional. πŸ“ Border Radius Basics /* Single value (all corners) */ border-radius: 10px; border-radius: 50%; /* Circle/ellipse */ /* Two values (top-left/bottom-right top-right/bottom-left) */ border-radius: 10px 20px; /* Three values */ border-radius: 10px 20px 30px; /* Four values […]

Read More
CSS

CSS: Master Position Property for Layout Control

- 11.07.26 - ErcanOPAK comment on CSS: Master Position Property for Layout Control

πŸ“ Position = Layout Control Elements need precise positioning. Position property controls layout. Static, relative, absolute, fixed, sticky. πŸ“ Position Types /* Static (default) */ position: static; – Normal flow – No positioning /* Relative */ position: relative; – Relative to normal position – Offset with top, right, bottom, left – Other elements not affected […]

Read More
CSS

CSS: Master Display Property for Layouts

- 11.07.26 - ErcanOPAK comment on CSS: Master Display Property for Layouts

πŸ“ Display = Layout Control Display controls layout. Block, inline, flex, grid β€” choose right display for perfect layout. πŸ“ Display Types /* Block */ display: block; – Full width – Line break before/after – Margin, padding, width, height – Examples: div, p, h1, section /* Inline */ display: inline; – Only as wide as […]

Read More
Page 4 of 9
Β« Previous 1 2 3 4 5 6 7 8 9 Next Β»

Posts pagination

« Previous 1 2 3 4 5 6 … 9 Next »
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (661)
  • Add Constraint to SQL Table to ensure email contains @ (619)
  • Average of all values in a column that are not zero in SQL (577)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (553)
  • Find numbers with more than two decimal places in SQL (481)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ HΔ±zΔ± Δ°zleyici Windows UygulamasΔ± v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ HΔ±zΔ± Δ°zleyici Windows UygulamasΔ± v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com