أمثلة عن الهامش الخارجي CSS Margins
-
2021-03-27
- | daafoor
- | مشاهدات: 416
مثال عن تحديد الهامش لعنصر من كل الاتجاهات:
Using individual margin properties
This div element has a top margin of 100px, a right margin of 150px, a bottom margin of 100px, and a left margin of 80px.
مثال عن تحديد الهامش لعنصر باستخدام اربع قيم:
The margin shorthand property - 4 values
This div element has a top margin of 25px, a right margin of 50px, a bottom margin of 75px, and a left margin of 100px.
مثال عن تحديد الهامش لعنصر (توسيط العنصر) :
Use of margin:auto
You can set the margin property to auto to horizontally center the element within its container. The element will then take up the specified width, and the remaining space will be split equally between the left and right margins:
This div will be horizontally centered because it has margin: auto;
هذه المادة الدراسية هي ضمن مكتبة
مكتبة امثلة اكواد CSS
التعليقات
لا يوجد تعليقات
لاضافة سؤال او تعليق على المشاركة يتوجب عليك تسجيل الدخول
تسجيل الدخول
تسجيل الدخول