शैली पाठसंरेखणअंतिम गुण
उदाहरण
अनुच्छेद की अंतिम पंक्ति को दाईं ओर संरेखित करें:
document.getElementById("myDIV").style.textAlignLast = "right";
परिभाषा और उपयोग
TextAlignLast गुण निर्दिष्ट करता है कि किसी पाठ की अंतिम पंक्ति को कैसे संरेखित किया जाए।
नोट: textAlignLast प्रॉपर्टी केवल उन तत्वों के लिए काम करेगी, जिनमें टेक्स्ट-एलाइन प्रॉपर्टी "जस्टिफाई" पर सेट है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
नोट: "प्रारंभ" और "अंत" मान Internet Explorer में समर्थित नहीं हैं।
वाक्य - विन्यास
TextAlignLast प्रॉपर्टी लौटाएं:
object.style.textAlignLast
टेक्स्ट एलाइन लास्ट प्रॉपर्टी सेट करें:
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
auto | Default value. The last line is justified and aligned left |
left | The last line is aligned to the left |
right | The last line is aligned to the right |
center | The last line is center-aligned |
justify | The last line is justified as the rest of the lines |
start | The last line is aligned at the beginning of the line (left if the text-direction is left-to-right, and right is the text-direction is right-to-left) |
end | The last line is aligned at the end of the line (right if the text-direction is left-to-right, and left is the text-direction is right-to-left) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | ऑटो |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, जो किसी तत्व के टेक्स्ट-एलाइन-अंतिम गुण का प्रतिनिधित्व करती है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
सीएसएस संदर्भ: टेक्स्ट-एलाइन-अंतिम संपत्ति
❮ स्टाइल ऑब्जेक्ट