Skip to main content

CSS - CSS Padding


                                      CSS - CSS Padding

box-MODEL

CSS Padding से element के content के लिए top, right, bottom और left side के लिए padding दी जाती है | Padding के लिए negative values नहीं दी जा सकती है |
Padding के demonstration के लिए आप border का इस्तेमाल कर सकते है |

Padding related Properties


Example for padding property CSS Padding

padding property पर आप top right bottom और left के sequence में paddings को set कर सकते है |
Example पर padding:50px; ये top,right,bottom और left इन चारों paddings के लिये 50px लिया गया है |
<p style="padding:50px;border:1px #000 solid;">
padding:50px;
</p>
Output :
padding:50px;



Live Example


Example पर 50px padding ये top,bottom के लिए है और 30px padding ये right,left के लिये दिया गया है |
<p style="padding:50px 30px;border:1px #000 solid;">
padding:50px 30px;
</p>
Output :
padding:50px 30px;



Example पर 50px ये top, 30px ये right और left के लिए और 50% ये bottom लिए दिया गया है |
<p style="padding:50px 30px 50%;border:1px #000 solid;">
padding:50px 30px 50%;
</p>
Output :
padding:50px 30px 10%;

CSS Padding Properties

PropertyDescription
paddingइस property पर element के लिए सभी padding properties दी जाती है |
padding-topElement पर top padding set की जाती है |
padding-rightElement पर right padding set की जाती है |
padding-bottomElement पर bottom padding set की जाती है |
padding-leftElement पर left padding set की जाती है |

Comments

Popular posts from this blog

Create a Responsive Login Form in HTML and CSS in Hindi

Create a Responsive Login Form in HTML and CSS in Hindi                                                              Login Form in HTML and CSS In this video, we will we see How to Create a Responsive Login Form in HTML and CSS in Hindi step by step. As you can see I try to make a Login form that should be different from others available online on any social media. Believe me, you gonna learn many new technique and tips on how to make a Responsive Login Form in HTML and CSS in Hindi. Let's talk about the background of the Login form in Hindi first. You can see It's a diagonal background and I know must of are thinking how we can create a diagonal webpage. Believe me, I wrote only one line of code to get the diagonal background on my Login Form in Hindi. background-image: linear-gradient(to top right, #color1 50%, #color2 50%); Create a Responsive Login Form in HTML and CSS in Hindi Now we will come to our Center Div. If you noticed I us

CSS - CSS Fonts in hindi, css font kya h,css font use kese kre,hindi me Technamdev.blogspot.com

CSS Fonts Properties से text/content के font को set किया जाता | इन properties में content को bold, italic, font size और अन्य प्रकार से styling की जाती है | CSS Font Generic Name and Font Family Name Font Generic Name Font Families का group होता है | जैसे कि, Sans-serif(generic) है और उसके अंतर्गत Arial, Arial Black, Agency FB, BankGothic, Calibri और आदि कई Fonts होते है | Font Family Name ये simple fonts name होते है | जैसे कि Arial, Arial Black, Agency FB, BankGothic, Calibri, और आदि कई | Agency FB Antiqua Architect Arial bankFuturistic BankGothic Blackletter Blagovest Calibri Comic Sans MS Courier Cursive Decorative Fantasy Fraktur Frosty Garamond Georgia Helvetica Impact Minion Modern Monospace Open Sans Palatino Roman Sans-serif Serif Script Swiss Times Times New Roman Verdana Most used Web Safe Font

RSOS (Rajasthan State Open School) student and RBSE students big update , news in hindi

                  kya nhi honge promote / kya exam honge  rajasthan state open school and RBSE ke students ke lia bahut badi khabar aayi hai . promote hone ke chance hua kam . par ab bhi kosis karne par aap sabhi ko promote kiya ja sakta hai . per esi bich aap apni teyari bhi jaari rakhe taki aapke exam hone par bhi aap achhe nubers s paas ho sake. Thank You