VH-এর বদলে SVH, LVH, DVH কেন ব্যবহার করবেন?

CSS-এ vh (viewport height) ইউনিট আমরা অনেক সময় ব্যবহার করি Hero Section, Fullscreen Layout, এবং Fixed Elements তৈরি করতে। তবে, Mobile Browsers-এ এটি কিছু সমস্যার কারণ হতে পারে, বিশেষ করে scrollable UI elements, address bar, এবং dynamic navigation bars থাকলে। এই সমস্যার সমাধান করতে CSS-এ এসেছে svh, lvh, dvh। চলুন বিস্তারিতভাবে কথা বলি কেন এগুলো ব্যবহার করা উচিত এবং কিভাবে এগুলো ওয়েবসাইটের UI উন্নত করতে পারে!

VH-এর সমস্যা কী?
vh ইউনিট ব্রাউজারের পুরো ভিউপোর্টকে ১০০% ধরে নেয়, কিন্তু মোবাইল ব্রাউজার এবং কিছু OS-এ Dynamic UI Elements (যেমন: address bar, bottom navigation bar) স্ক্রল করলে ভিউপোর্টের আকার পরিবর্তন হয়। এর ফলে, vh ভিত্তিক ডিজাইন ভেঙে যেতে পারে, অতিরিক্ত স্ক্রলবার দেখা যেতে পারে, অথবা কন্টেন্ট কেটে যেতে পারে।

উদাহরণস্বরূপ, যদি height: 100vh; ব্যবহার করলে মোবাইলে প্রথমে এটি পুরো স্ক্রিন কভার করবে, কিন্তু স্ক্রল করলে address bar ছোট হয়ে গেলে layout পরিবর্তিত হবে, যার দরুন সঠিক UI/UX-পাওয়া যাবে না।

নতুন VH ইউনিটগুলোর সুবিধা

svh (Small Viewport Height):
স্ক্রিনের সর্বনিম্ন উচ্চতাকে ধরে। যখন address bar, navigation bar থাকে, তখন সবচেয়ে ছোট view height ধরে রাখে।
ব্যবহার: এমন UI যেখানে ভিউপোর্টের সর্বনিম্ন উচ্চতা ঠিক রাখতে হবে, যেমন modals, popups, fixed footers ইত্যাদি।

lvh (Large Viewport Height):
স্ক্রিনের সর্বোচ্চ সম্ভাব্য ভিউপোর্ট উচ্চতা নেয়। Address bar বা অন্যান্য UI elements উঠে গেলে এটি পরিবর্তিত হয় না।
ব্যবহার: Full-screen sections, Hero areas, যেখানে সবসময় স্ক্রিনের সর্বোচ্চ অংশ কাভার করতে হবে।

dvh (Dynamic Viewport Height):
এটি রিয়েল-টাইমে পরিবর্তিত হয়, অর্থাৎ address bar স্ক্রল করলে height dynamic ভাবে পরিবর্তন হবে।
ব্যবহার: Responsive UI যেখানে smooth height transition দরকার, যেমন fullscreen sections, dynamic content 🔥

Share Now

Related Blogs

Elementor-এ ফিক্সড ব্যাকগ্রাউন্ড ইস্যু?

আপনি কি Elementor ব্যবহার করে ওয়েবসাইট ডিজাইন করতে গিয়ে ফিক্সড ব্যাকগ্রাউন্ড ইস্যুতে পড়েছেন? বিশেষ করে মোবাইল ডিভাইসে ফিক্সড ব্যাকগ্রাউন্ড ঠিক মতো কাজ করে না! Elementor-এ…

Make Your Elementor Website More Fun with a Custom Color Picker!

Do you want to let visitors choose their favorite color for your website? A simple color picker can do just that! This feature allows users…

Elementor Icon Box Layout on Responsive Devices

Fixing Elementor Icon Box Layout on Responsive Devices with Simple CSS! When creating responsive websites, maintaining a clean and professional layout across all devices is…

WordPress Web Security

When building websites with Elementor, security should always be a priority. Here are some of the best security plugins you can use to protect your…

PX vs EM vs REM

Choosing between em, rem, and px for font sizes and spacing can make a big difference in your web design’s responsiveness and accessibility. Here’s a…

Improve you typography by using “clamp()”

Did you know that you can improve your typography responsiveness in Elementor by using the clamp() function for font sizing? This CSS trick helps create…

File Explorer

Search This PC

File Explorer

Search About

This website designed and developed by Nurul Hudda and designed with Elementor. Design inspiration from Windows 11.

File Explorer

Search Projects

This PC

This website designed and developed by Nurul Hudda and designed with Elementor. Design inspiration from Windows 11.

Contact.txt

File Explorer

Search Contact

This website designed and developed by Nurul Hudda and designed with Elementor. Design inspiration from Windows 11.

Projects.txt

Windows 11 – Themed Portfolio

Description: This portfolio is inspired by the Windows 11 UI, featuring a clean, modern, and glassmorphic design with smooth animations. It mimics the Windows 11 interface to provide a unique and interactive user experience, making your portfolio look like an operating system.

Technologies: Elementor, WordPress, JavaScript.

 

Portfolio with VS Code UI

Description: This portfolio is a web project inspired by the Visual Studio Code UI, featuring a dark theme, sidebar navigation, tab system, and a coding editor-like interface. It was designed to showcase projects, skills, and personal information in a unique and interactive way.

Technologies: Elementor, WordPress, JavaScript

About.txt

Developer Profile:

  • Name: Nurul Hudda
  • Profession: Web Designer & Developer
  • Expertise: Elementor, WordPress, HTML, CSS, JavaScript

Experience:

  • Years of Experience: 1.5+ Years
  • Projects: 60+ with Elementor


Skills:

  • Primary Skill: Web Development
  • Tools: Elementor Pro, VS Code, Figma, Adobe XD


Contact:

Nurul Hudda - Visual Studio Code

Explorer

portfolio

The reference site was created by Harwin Dan using Next.js, while this site has been built with the Elementor Page Builder by Nurul Hudda.

				
					<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Nurul's Portfolio</title>
    <link rel="stylesheet" href="About.css">
</head>
<body>
    <header>
        <h1>Welcome to My Portfolio</h1>
        <p>Hi, I'm Nurul – A Web Designer & Developer</p>
    </header>
    
    <nav>
        <ul>
            <li><a href="#home">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#portfolio">Portfolio</a></li>
            <li><a href="#contact">Contact</a></li>
        </ul>
    </nav>
    
    <section>
        <h2>Crafting Unique Web Experiences</h2>
        <p>Passionate about building aesthetic & functional websites with Elementor.</p>
    </section>
    
    <footer>
        <p>© 2025 Nurul. All rights reserved.</p>
    </footer>
<//body>
</html>
				
			
				
					/* Developer Profile */
.nurul {
    name: "Nurul Hudda";
    profession: "Web Designer & Developer";
    expertise: ["Elementor", "WordPress", "HTML", "CSS", "JavaScript"];
}

/* Experience */
.experience {
    years: 1.5+ Years;
    projects: 60+ with Elementor;
}

/* Skills */
.skills {
    primary: "Web Development";
    tools: ["Elementor Pro", "VS Code", "Figma", "Adobe xd"];
}

/* Contact */
.contact {
    email: "hello@nurul.docstec.com";
    linkedin: "www.linkedin.com/in/nurulhudda247";
    website: "www.nurul.docstec.com";
    location: "Remote, Worldwide";
}
				
			
				
					// Nurul's Portfolio
const developer = {
    name: "Nurul Hudda",
    role: "Web Designer & Developer",
    skills: ["Elementor", "HTML", "CSS", "JavaScript"],
    projects: [
        { title: "Personal Portfolio", status: "Ongoing" },
        { title: "Landing Page", status: "Completed" },
        { title: "E-Commerce Website", status: "Completed" },
        { title: "Company Profile Website", status: "Completed" },
        { title: "Learning Management System", status: "Completed" },
        { title: "Charity Website", status: "Completed" },
    ]
};
				
			
				
					<?php
// Contact form handling
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    echo "Thanks for reaching out, " . htmlspecialchars($_POST["name"]) . "!";
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Contact Nurul</title>
</head>
<body>
    <h1>Contact Me</h1>
    
    <!-- Basic Info -->
    <p><strong>Email:</strong> nurulhudda247@gmail.com</p>
    <p><strong>Phone:</strong> +880 1755 456 278</p>
    <p><strong>Follow me on:</strong></p>
    <ul>
        <li><a href="https://www.linkedin.com/in/nurulhudda247/">LinkedIn</a></li>
        <li><a href="wa.link/miz7am">Whatsapp</a></li>
    </ul>

    <!-- Contact Form -->
    <form method="POST">
        <label>Name:</label><br>
        <input type="text" name="name" required><br><br>
        
        <label>Email:</label><br>
        <input type="email" name="email" required><br><br>

        <label>Message:</label><br>
        <textarea name="message" required></textarea><br><br>

        <button type="submit">Send Message</button>
    </form>
</body>
</html>