बूटस्ट्रैप 4 टेक्स्ट/टाइपोग्राफी
बूटस्ट्रैप 4 डिफ़ॉल्ट सेटिंग्स
बूटस्ट्रैप 4
font-size
16px के डिफ़ॉल्ट का उपयोग करता है, और
line-height
यह 1.5 है।
डिफ़ॉल्ट font-family
"हेल्वेटिका न्यू", हेल्वेटिका, एरियल, सेन्स-सेरिफ़ है।
इसके अलावा, सभी <p>
तत्वों में
margin-top: 0
और margin-bottom: 1rem
(डिफ़ॉल्ट रूप से 16px) है।
<h1> - <h6>
बूटस्ट्रैप 4 स्टाइल एचटीएमएल हेडिंग ( <h1>
से
<h6>
) बोल्डर फॉन्ट-वेट और बढ़े हुए फॉन्ट-साइज के साथ:
उदाहरण
h1 Bootstrap heading (2.5rem = 40px)
h2 Bootstrap heading (2rem = 32px)
h3 Bootstrap heading (1.75rem = 28px)
h4 Bootstrap heading (1.5rem = 24px)
h5 Bootstrap heading (1.25rem = 20px)
h6 Bootstrap heading (1rem = 16px)
प्रदर्शन शीर्षक
प्रदर्शन शीर्षकों का उपयोग सामान्य शीर्षकों (बड़े फ़ॉन्ट-आकार और हल्के फ़ॉन्ट-भार) से अधिक अलग दिखने के लिए किया जाता है, और इनमें से चुनने के लिए चार वर्ग हैं: .display-1
, .display-2
, .display-3
,.display-4
उदाहरण
Display 1
Display 2
Display 3
Display 4
<छोटा>
बूटस्ट्रैप 4 में HTML <small>
तत्व का उपयोग किसी भी शीर्षक में हल्का, द्वितीयक पाठ बनाने के लिए किया जाता है:
उदाहरण
h1 heading secondary text
h2 heading secondary text
h3 heading secondary text
h4 heading secondary text
h5 heading secondary text
h6 heading secondary text
<चिह्न>
<mark>
बूटस्ट्रैप 4 HTML तत्व को पीले रंग की पृष्ठभूमि के रंग और कुछ पैडिंग के साथ स्टाइल करेगा :
उदाहरण
Use the mark element to highlight text.
<abbr>
<abbr>
बूटस्ट्रैप 4 HTML एलिमेंट को डॉटेड बॉर्डर बॉटम के साथ स्टाइल करेगा :
उदाहरण
The WHO was founded in 1948.
<ब्लॉककोट>
किसी अन्य स्रोत से सामग्री के ब्लॉक को उद्धृत करते समय .blockquote
कक्षा को a में जोड़ें :<blockquote>
उदाहरण
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
<डीएल>
बूटस्ट्रैप 4 HTML <dl>
तत्व को निम्नलिखित तरीके से स्टाइल करेगा:
उदाहरण
- Coffee
- - black hot drink
- Milk
- - white cold drink
<कोड>
बूटस्ट्रैप 4 HTML <code>
तत्व को निम्नलिखित तरीके से स्टाइल करेगा:
उदाहरण
The following HTML elements: span
, section
, and div
defines a section in a document.
<केबीडी>
बूटस्ट्रैप 4 HTML <kbd>
तत्व को निम्नलिखित तरीके से स्टाइल करेगा:
उदाहरण
Use ctrl + p to open the Print dialog box.
<पूर्व>
बूटस्ट्रैप 4 HTML <pre>
तत्व को निम्नलिखित तरीके से स्टाइल करेगा:
उदाहरण
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks.
अधिक टाइपोग्राफी कक्षाएं
नीचे दिए गए बूटस्ट्रैप 4 वर्गों को आगे चलकर HTML तत्वों को स्टाइल करने के लिए जोड़ा जा सकता है:
Class | Description | Example |
---|---|---|
.font-weight-bold |
Bold text | |
.font-weight-bolder |
Bolder text | |
.font-italic |
Italic text | |
.font-weight-light |
Light weight text | |
.font-weight-lighter |
Lighter weight text | |
.font-weight-normal |
Normal text | |
.lead |
Makes a paragraph stand out | |
.small |
Indicates smaller text (set to 80% of the size of the parent) | |
.text-left |
Indicates left-aligned text | |
.text-*-left |
Indicates left-aligned text on small, medium, large or xlarge screens | |
.text-break |
Prevents long text from breaking layout | |
.text-center |
Indicates center-aligned text | |
.text-*-center |
Indicates center-aligned text on small, medium, large or xlarge screens | |
.text-decoration-none |
Removes the underline from a link | |
.text-right |
Indicates right-aligned text | |
.text-*-right |
Indicates right-aligned text on small, medium, large or xlarge screens | |
.text-justify |
Indicates justified text | |
.text-monospace |
Monospaced text | |
.text-nowrap |
Indicates no wrap text | |
.text-lowercase |
Indicates lowercased text | |
.text-reset |
Resets the color of a text or a link (inherits the color from its parent) | |
.text-uppercase |
Indicates uppercased text | |
.text-capitalize |
Indicates capitalized text | |
.initialism |
Displays the text inside an <abbr> element in a slightly smaller font size |
|
.list-unstyled |
Removes the default list-style and left margin on list items (works on both <ul> and <ol> ). This class only applies to immediate children list items (to remove the default list-style from any nested lists, apply this class to any nested lists as well) |
|
.list-inline |
Places all list items on a single line (used together with
.list-inline-item on each <li> elements) |
|
.pre-scrollable |
Makes a <pre> element scrollable |
पूरा बूटस्ट्रैप 4 सीएसएस संदर्भ
बूटस्ट्रैप 4 में उपलब्ध सभी सीएसएस वर्गों के संपूर्ण संदर्भ के लिए, हमारे बूटस्ट्रैप 4 ऑल क्लासेस संदर्भ पर जाएँ ।