[ ط§ط¨ط¯ط§ط¹ط§طھ ط§ظ„ظ€ CsS ] طھط¬ط³ظٹظ… ط§ظ„ظƒظ„ظ…ط©
بسم الله الرحمن الرحيم
الحمدلله والصلاة والسلام على رسول الله وعلى آله وصحبه أجمعين
السلام عليكم ورحمة الله وبركاته
الـ css
تقنية جميلة جدا ً لتصميم صفحات الويب
عرفتها منذ مدة ولكن لم اتعلميها الا من قريب
واعتبر نفسي الى الآن مبتدئ بها
من خصائص الـ css
خاصية position
وهذه الخاصية الجملية تمكن المصمم من التحكم بمرونة مع تصميماته
استخدمت هذه الخاصية من اجل تجسيد كلمة
كما نفعل ببرنامج الفوتوشوب وكانت النتيجة مذهلة
شاهد نتيجة العمل
http://www.barqalshamal.com/waleed.html
وشاهد كلمة barqalshamal
هذا هو القصود
والسبب بعمل مثل هذه التجربة هو التقليل من استخدام الصور في التصاميم حتى يكون تصفح الصفحة سريع
طريقة عمل مثل هذا المثال
اولا من اي برنامج تحرير نصوص مثلا ً
[ FrontPage - Dreamweaver - Notepad ]
قم بعمل صفحة html واكتب بها التالي
شاهد
رمز Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> <title>Untitled Document</title> </head> <body> </body> </html>
ثم نفتح في head وسم الـ css
التالي
رمز Code:
<style type="text/css"> </style>
ونضع بداخله معلومات الـ css التالية
رمز Code:
#Word { background: #A3A3A3; width: 650px; margin: 0px auto; height: 550px; border-width: 1px 1px; border-style: dotted dotted; border-color: #3A3A3A #3A3A3A; position: relative; } .Word1 { font-size: 80px; color: #0E0E0E; position: absolute; top: 275px; font-weight: bold; left: 5px; } .Word2 { font-size: 80px; font-weight: bold; color: #FEFEFE; position: absolute; top: 275px; }
يصبح كالتالي
رمز Code:
<style type="text/css"> #Word { background: #A3A3A3; width: 650px; margin: 0px auto; height: 550px; border-width: 1px 1px; border-style: dotted dotted; border-color: #3A3A3A #3A3A3A; position: relative; } .Word1 { font-size: 80px; color: #0E0E0E; position: absolute; top: 275px; font-weight: bold; left: 5px; } .Word2 { font-size: 80px; font-weight: bold; color: #FEFEFE; position: absolute; top: 275px; } </style>
ثم في منطقة الـ body نضع التالي
رمز Code:
<div id="Word"> <div class="Word1">barqalshaml</div> <div class="Word2">barqalshaml</div> </div>
لتكون الصفحة بالشكل التالي
رمز Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" /> <title>ابداعات الـ Css</title> <style type="text/css"> <!-- #Word { background: #A3A3A3; width: 650px; margin: 0px auto; height: 550px; border-width: 1px 1px; border-style: dotted dotted; border-color: #3A3A3A #3A3A3A; position: relative; } .Word1 { font-size: 80px; color: #0E0E0E; position: absolute; top: 275px; font-weight: bold; left: 5px; } .Word2 { font-size: 80px; font-weight: bold; color: #FEFEFE; position: absolute; top: 275px; } --> </style> </head> <body bgcolor="#272325"> <div id="Word"> <div class="Word1">barqalshaml</div> <div class="Word2">barqalshaml</div> </div> </body> </html>
نحفظ الصفحة لنشاهد عملنا
بإختصار هذه هي الطريقة
اخوكم
برق الشمال
http://www.barqalshamal.com
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©