Professional Documents
Culture Documents
Css 1
Css 1
other media
• الستخدام األنماط املضمنة ، inline stylesإضافة سمة نمط العناصر ذات الصلة.
• Html
• <!-- sdfsdfsdf -->
• Css
• /* This is a single-line comment */
CSS COLOR
color:red;
COLOR TYPE 2- COLOR VALUE
• RGB Value
• rgb((red, green, blue) // 0- 255
• rgb(255,0,0) // red
• rgb(0,255,0) // green
• rgb(0,0,255) // blue
• rgb(0,0,0) // black
• rgb(255,255,255) // white
• RGBA Value
• rgba(red, green, blue, alpha) // 0- 255 & شفافية0-
1.0
COLOR TYPE 2- COLOR VALUE
• HEX Value
• #rrggbb // 0 – 9 & A-F
• #000 or #000000 // black
• #fff or #ffffff // white
• #f00 or #ff0000 // red
• #0f0 or #00ff00 //green
• #00f or #0000ff //blue
• #333 or #333333 // سكني غامق
• #eee or #eeeeee //سكني فاتح
COLOR TYPE 2- COLOR VALUE
• HSL Value
• hsl(hue, saturation, lightness)
• HUE = 0-360 deg
• SATURATION & LIGHTNESS = 0 -100%
• HSLA Value
• hsl(hue, saturation, lightness , alpha) شفافية
• Color: transparent
CSS BACKGROUNDS
• background-color:red; // لون الخلفية
• repeat-x/repeat-y /no-repeat
• background-attachment: scroll; / fixed شكل ارفاق صورة الخلفية
• background-position: right top; // موضع الخلفية داخل الصندوق بشكل افقي او بشكل راس ي
CSS BACKGROUND-COLOR
• لون خلفية العنصر
اختصار الكود
CSS BACKGROUNDS
• Mixed border
• Border-style:
• dotted dashed solid double
• top right bottom left
CSS BORDER WIDTH
• Exmpale:
• border-width: medium;
• border-width: thick;
• border-color: green;
• border-color: #00FF00;
• border-color: rgb(0,255,0); // كل الحواف اخضر
• border-color: hsl(0, 100%, 50%); /* red */
• border-color: red green blue yellow;
• // red top, green right, blue bottom and yellow left
CSS BORDER SIDES
• border: 5px solid red; // بكسل ولونه احمر5 حد شكله صلب وحجم