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

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...

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,...

Introduction for PHP in Hindi - PHP in Hindi

                                Introduction for PHP in Hindi - PHP in Hindi PHP in Hindi PHP क्या है ? PHP ये एक open-source server-side scripting Language है जो Web Application बनाने के लिए इस्तेमाल होती है | PHP Language को HTML या HTML5 इस scripting Language में embed किया गया है | PHP का full-form भूतकाल में Personal Home Page बोला जाता था लेकिन वर्त्तमान में इसे HyperText Proprocessor बोला जाता है | PHP Language का अविष्कार Rasmus Lerdorf ने 1994 में किया | PHP ये server-side होने से ये Web server या client machine पर चलाई जाती है | PHP को चलाना है तो कुछ client machine server की जरुरत पड़ती है जैसे, Xampp, Wamp, Lamp और भी कई servers है | PHP का इस्तेमाल PHP का इस्तेमाल Web Application में किया जाता है | PHP के साथ कई database का इस्तेमाल किया जाता है जैसे MySQL, SQL, Oracle, PostegreSQL आदि | PHP के लिए कई frameworks काम करते है | PHP में Files को open, close, rea...