কম্পিউটার টিউটোরিয়াল

CSS text-justify প্রপার্টি ব্যবহার

CSS-এ text-justify প্রপার্টি টেক্সট জাস্টিফিকেশন (justification) পদ্ধতি নির্ধারণ করতে ব্যবহৃত হয়, যখন text-align: justify সেট করা থাকে। সম্ভাব্য মানগুলো:

text-justify: auto | inter-word | inter-character | none | initial | inherit;

উদাহরণ: inter-word জাস্টিফিকেশন

<!DOCTYPE html> <html> <head> <style> div {    text-align: justify;    text-justify: inter-word;    color: white;    background-color: gray; } </style> </head> <body> <h2>Demo Heading</h2> <div>This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. </div> </body> </html>

আউটপুট

CSS text-justify প্রপার্টি ব্যবহার

এখন ব্রাউজার রিসাইজ করুন:

CSS text-justify প্রপার্টি ব্যবহার

মানগুলো:

  • auto: ব্রাউজার স্বয়ংক্রিয়ভাবে নির্ধারণ করে
  • inter-word: শব্দের মাঝপথে স্পেস বাড়িয়ে জাস্টিফাই করে (ইংরেজির জন্য আদর্শ)
  • inter-character: অক্ষরের মাঝপথে স্পেস বাড়িয়ে জাস্টিফাই করে (CJK ভাষার জন্য উপযুক্ত)
  • none: জাস্টিফিকেশন নিষিদ্ধ করে

টিপস: বাংলা বা ইংরেজি টেক্সটের জন্য inter-word সাধারণত সেরা ফলাফল দেয়।

  1. CSS word-spacing প্রপার্টি অ্যানিমেট করুন

  2. CSS hyphens প্রপার্টি

  3. CSS right প্রপার্টি ব্যবহার

  4. CSS-এ টেক্সট ফরম্যাটিং