Css 4
Css 4
• 3- My Fonts (download)
• @font-face { // تعريف الخط الجديد
font-family: myFirstFont;
src: url(sansation_light.woff);
}
• font-family: myFirstFont; // االستخدام
• Font type
• ttf/otf
•
woff
CSS FONTS
• Font Size // حجم الخط
• font-size: 40px;
• font-size: 100%;
• Font Shorthand
• font-style
• font-weight
• font-size/line-height
• font-family
• Ex:
• Font: font-style font-weight font-size/line-height font-family
• font: 20px Arial, sans-serif;
• font: italic bold 12px/30px Georgia, serif;
• https://www.flaticon.com
CSS ICONS
•
CSS TITLE PAGE ICON - FAVICON
• الضافة ايقون لشريط املوقع tabمن خالل وضع رابط التالي في راس الصفحة
>"• <link rel="icon" href="/img" type="image/x-icon
• تجعل الخاصية املكتوب اهم من نفس الخاصية في مكان ثاني أي تنفذها باختالف
االولوية
• <style>p{color:red;}</style>
hi
• <p style=“”color:blue;>hi</p>
• <style>p{color:red !Important;}</style> hi
• <p style=“”color:blue;>hi</p>
CSS3 – VARIABLES
• ألنشاء متغير
• --var-name: var-vlaue;
• Exp:
• --blue: #1e90ff;
• --white: #ffffff;
• استخدام املتغير
• background-color: var(--blue);
CSS LINKS
• a tag status:
• a:link - a normal, unvisited link // عدم الزيارة طبيعي
• a:hover - a link when the user mouses over it // تاشير على الرابط باملاوس