सुझाव भेजें
सीएसएस सहायता
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Gmail पर भेजे गए ईमेल को स्टाइल करने के लिए, इनलाइन <style>
ब्लॉक और स्टैंडर्ड सीएसएस का इस्तेमाल किया जा सकता है. ज़्यादातर सीएसएस सिलेक्टर, एट्रिब्यूट, और मीडिया-क्वेरी काम करती हैं.
Gmail, सीएसएस की ऐसी प्रॉपर्टी और सिलेक्टर को अनदेखा कर सकता है जिनका इस्तेमाल नहीं किया जा सकता.
इस्तेमाल की जा सकने वाली सीएसएस प्रॉपर्टी और क्वेरी की पूरी सूची देखने के लिए, रेफ़रंस गाइड देखें.
सीएसएस सिलेक्टर
स्टाइल लागू करने के लिए, सीएसएस सिलेक्टर के सबसेट का इस्तेमाल किया जा सकता है. Gmail में क्लास, एलिमेंट, और आईडी सिलेक्टर काम करते हैं.
उदाहरण
<html >
<head >
<style >
. colored {
color : blue ;
}
# body {
font-size : 14 px ;
}
</ style >
</ head >
<body >
<div id = 'body' >
<p>Hi Pierce ,</ p >
<p class = 'colored' >This text is blue .</ p >
<p>Jerry </ p >
</ div >
</ body >
</ html >
उपयोगकर्ता के मौजूदा डिवाइस के हिसाब से ईमेल की स्टाइल को अडजस्ट करने के लिए, स्टैंडर्ड सीएसएस मीडिया क्वेरी का इस्तेमाल किया जा सकता है. Gmail, स्क्रीन की चौड़ाई, ओरिएंटेशन, और रिज़ॉल्यूशन के हिसाब से क्वेरी करने की सुविधा देता है.
उदाहरण
<html >
<head >
<style >
. colored {
color : blue ;
}
# body {
font-size : 14 px ;
}
@ media screen and ( min-width : 500px ) {
. colored {
color : red ;
}
}
</ style >
</ head >
<body >
<div id = 'body' >
<p>Hi Pierce ,</ p >
<p class = 'colored' >
This text is blue if the window width is
below 500px and red otherwise .
</ p >
<p>Jerry </ p >
</ div >
</ body >
</ html >
सीएसएस की ऐसी प्रॉपर्टी और क्वेरी जो कंपोज़िटर के साथ काम करती हैं
Gmail में इन सीएसएस प्रॉपर्टी का इस्तेमाल किया जा सकता है:
azimuth
बैकग्राउंड
background-blend-mode
पृष्ठभूमि-क्लिप
पृष्ठभूमि-रंग
पृष्ठभूमि-छवि
पृष्ठभूमि-मूल
पृष्ठभूमि-स्थान
पृष्ठभूमि-दोह
पृष्ठभूमि-आकार
बॉर्डर
बॉर्डर-निचला
बॉर्डर-निचला-रंग
बॉर्डर-निचला-बाईं-त्रिज्या
बॉर्डर-निचला-दाहिनी-त्रिज्या
बॉर्डर-निचला-शैली
बॉर्डर-निचला-चौड़ाई
बॉर्डर-संक्षिप्त
बॉर्डर-रंग
बॉर्डर-बायां
बॉर्डर-बायां-रंग
बॉर्डर-बायां-शैली
बॉर्डर-बायां-चौड़ाई
बॉर्डर-त्रिज्या
border-right
border-right-color
बॉर्डर-दाहिना-शैली
border-right-width
बॉर्डर-स्पेसिंग
बॉर्डर-शैली
बॉर्डर-शीर्ष
बॉर्डर-शीर्ष-रंग
बॉर्डर-शीर्ष-बाईं-त्रिज्या
बॉर्डर-शीर्ष-दाहिनी-त्रिज्या
बॉर्डर-शीर्ष-शैली
बॉर्डर-शीर्ष-चौड़ाई
बॉर्डर-चौड़ाई
box-sizing
break-after
break-before
break-inside
कैप्शन-किनारा
मिटाएं
रंग
column-count
column-fill
column-gap
column-rule
column-rule-color
column-rule-style
column-rule-width
column-span
column-width
कॉलम
दिशा
डिसप्ले
elevation
रिक्त-सेल
फ़्लोट
फ़ॉन्ट
फ़ॉन्ट-परिवार
font-feature-settings
font-kerning
फ़ॉन्ट-आकार
font-size-adjust
फ़ॉन्ट-तना
फ़ॉन्ट-शैली
font-synthesis
फ़ॉन्ट-विविधता
font-variant-alternates
font-variant-caps
font-variant-east-asian
font-variant-ligatures
font-variant-numeric
फ़ॉन्ट-भार
ऊंचाई
image-orientation
image-resolution
ime-mode
बीमार लोगों को स्वस्थ लोगों से अलग रखना
layout-flow
layout-grid
layout-grid-char
layout-grid-char-spacing
layout-grid-line
layout-grid-mode
layout-grid-type
अक्षर-स्पेसिंग
line-break
रेखा-ऊंचाई
सूची-शैली
सूची-शैली-स्थान
सूची-शैली-प्रकार
मार्जिन
निचली-मार्जिन
बाईं-मार्जिन
दाहिनी-मार्जिन
शीर्ष-मार्जिन
marker-offset
अधिकतम-ऊंचाई
अधिकतम-चौड़ाई
न्यूनतम-ऊंचाई
न्यूनतम-चौड़ाई
mix-blend-mode
object-fit
object-position
opacity
बाह्यरेखा
बाह्यरेखा-रंग
बाह्यरेखा-शैली
बाह्यरेखा-चौड़ाई
ओवरफ़्लो
ओवरफ़्लो-x
ओवरफ़्लो-y
पैडिंग
निचली-पैडिंग
बाईं-पैडिंग
दाहिनी-पैडिंग
शीर्ष-पैडिंग
page-break-after
page-break-before
page-break-inside
रोकें
pause-after
pause-before
पिच
pitch-range
उद्धरण
richness
बोलना
speak-header
speak-numeral
speak-punctuation
speech-rate
तनाव
तालिका-लेआउट
टेक्स्ट-संरेखण
text-align-last
text-autospace
text-combine-upright
टेक्स्ट-सज्जा
text-decoration-color
text-decoration-line
text-decoration-skip
text-decoration-style
text-emphasis
text-emphasis-color
text-emphasis-style
टेक्स्ट-इंडेंट
text-justify
text-kashida-space
text-orientation
टेक्स्ट-ओवरफ़्लो
टेक्स्ट-परिवर्तन
text-underline-position
unicode-bidi
लम्बवत-संरेखण
voice-family
व्हाइटस्पेस
चौड़ाई
शब्द-ब्रेक
शब्द-स्पेसिंग
शब्द-रैप
writing-mode
ज़ूम
इस तरह के कोड काम करते हैं
इन क्वेरी के लिए सुविधा उपलब्ध है
न्यूनतम-चौड़ाई
अधिकतम-चौड़ाई
min-device-width
max-device-width
ओरिएंटेशन
min-resolution
max-resolution
इस्तेमाल किए जा सकने वाले कीवर्ड
सुझाव भेजें
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया.
क्या आपको हमें और कुछ बताना है?
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-08-29 (UTC) को अपडेट किया गया."],[],[],null,["# CSS Support\n\nYou can style email sent to Gmail using inline `\u003cstyle\u003e` blocks and\nstandard CSS. Most CSS selectors, attributes, and media-queries are supported.\nUnsupported CSS properties and selectors may be ignored by Gmail.\n\nSee the reference guide for a complete list of\n[supported CSS properties and queries](#supported_css).\n\nCSS Selectors\n-------------\n\nYou can use a subset of CSS selectors to apply styles. Gmail supports class,\nelement, and id selectors.\n\n### Example\n\n \u003chtml\u003e\n \u003chead\u003e\n \u003cstyle\u003e\n .colored {\n color: blue;\n }\n #body {\n font-size: 14px;\n }\n \u003c/style\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv id='body'\u003e\n \u003cp\u003eHi Pierce,\u003c/p\u003e\n \u003cp class='colored'\u003eThis text is blue.\u003c/p\u003e\n \u003cp\u003eJerry\u003c/p\u003e\n \u003c/div\u003e\n \u003c/body\u003e\n \u003c/html\u003e\n\nCSS Media Queries\n-----------------\n\nYou can use standard CSS media queries to adjust the styling of an email to\nsuit the user's current device. Gmail supports queries against the screen width,\norientation, and resolution.\n\n### Example\n\n \u003chtml\u003e\n \u003chead\u003e\n \u003cstyle\u003e\n .colored {\n color: blue;\n }\n #body {\n font-size: 14px;\n }\n @media screen and (min-width: 500px) {\n .colored {\n color:red;\n }\n }\n \u003c/style\u003e\n \u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv id='body'\u003e\n \u003cp\u003eHi Pierce,\u003c/p\u003e\n \u003cp class='colored'\u003e\n This text is blue if the window width is\n below 500px and red otherwise.\n \u003c/p\u003e\n \u003cp\u003eJerry\u003c/p\u003e\n \u003c/div\u003e\n \u003c/body\u003e\n \u003c/html\u003e\n\nSupported CSS properties \\& queries\n-----------------------------------\n\nThe following CSS properties are supported in Gmail:\n\n- azimuth\n- background\n- background-blend-mode\n- background-clip\n- background-color\n- background-image\n- background-origin\n- background-position\n- background-repeat\n- background-size\n- border\n- border-bottom\n- border-bottom-color\n- border-bottom-left-radius\n- border-bottom-right-radius\n- border-bottom-style\n- border-bottom-width\n- border-collapse\n- border-color\n- border-left\n- border-left-color\n- border-left-style\n- border-left-width\n- border-radius\n- border-right\n- border-right-color\n- border-right-style\n- border-right-width\n- border-spacing\n- border-style\n- border-top\n- border-top-color\n- border-top-left-radius\n- border-top-right-radius\n- border-top-style\n- border-top-width\n- border-width\n- box-sizing\n- break-after\n- break-before\n- break-inside\n- caption-side\n- clear\n- color\n- column-count\n- column-fill\n- column-gap\n- column-rule\n- column-rule-color\n- column-rule-style\n- column-rule-width\n- column-span\n- column-width\n- columns\n- direction\n- display\n- elevation\n- empty-cells\n- float\n- font\n- font-family\n- font-feature-settings\n- font-kerning\n- font-size\n- font-size-adjust\n- font-stretch\n- font-style\n- font-synthesis\n- font-variant\n- font-variant-alternates\n- font-variant-caps\n- font-variant-east-asian\n- font-variant-ligatures\n- font-variant-numeric\n- font-weight\n- height\n- image-orientation\n- image-resolution\n- ime-mode\n- isolation\n- layout-flow\n- layout-grid\n- layout-grid-char\n- layout-grid-char-spacing\n- layout-grid-line\n- layout-grid-mode\n- layout-grid-type\n- letter-spacing\n- line-break\n- line-height\n- list-style\n- list-style-position\n- list-style-type\n- margin\n- margin-bottom\n- margin-left\n- margin-right\n- margin-top\n- marker-offset\n- max-height\n- max-width\n- min-height\n- min-width\n- mix-blend-mode\n- object-fit\n- object-position\n- opacity\n- outline\n- outline-color\n- outline-style\n- outline-width\n- overflow\n- overflow-x\n- overflow-y\n- padding\n- padding-bottom\n- padding-left\n- padding-right\n- padding-top\n- page-break-after\n- page-break-before\n- page-break-inside\n- pause\n- pause-after\n- pause-before\n- pitch\n- pitch-range\n- quotes\n- richness\n- speak\n- speak-header\n- speak-numeral\n- speak-punctuation\n- speech-rate\n- stress\n- table-layout\n- text-align\n- text-align-last\n- text-autospace\n- text-combine-upright\n- text-decoration\n- text-decoration-color\n- text-decoration-line\n- text-decoration-skip\n- text-decoration-style\n- text-emphasis\n- text-emphasis-color\n- text-emphasis-style\n- text-indent\n- text-justify\n- text-kashida-space\n- text-orientation\n- text-overflow\n- text-transform\n- text-underline-position\n- unicode-bidi\n- vertical-align\n- voice-family\n- white-space\n- width\n- word-break\n- word-spacing\n- word-wrap\n- writing-mode\n- zoom\n\n### Supported media queries\n\n#### Supported types\n\n- all\n- screen\n\n#### Supported queries\n\n- min-width\n- max-width\n- min-device-width\n- max-device-width\n- orientation\n- min-resolution\n- max-resolution\n\n#### Supported keywords\n\n- and\n- only"]]