As the industry standard method for enriching the presentation of HTML-based web pages, Cascading Style Sheets (CSS) allow you to give web pages more structure and a more sophisticated look. But first, you have to get past CSS theory and resolve real-world problems. For those all-too-common dilemmas that crop up with each project, CSS Cookbook provides hundreds of practical examples with CSS code recipes that you can use immediately to format your web pages. Arranged in a quick-lookup format for easy reference, the second edition has been updated to explain the unique behavior of the latest Microsoft's IE 7 and Mozilla's Firefox 1.5. Also, the book has been expanded to cover the interaction of CSS and images and now includes more recipes for beginning CSS users. The explanation that accompanies each recipe enables you to customize the formatting for your specific needs. With topics that range from basic web typography and page layout to techniques for formatting lists, forms, and tables, this book is a must-have companion, regardless of your experience with Cascading Style Sheets.
An award winning designer, web developer, writer, and speaker. He earned an Undergraduate Degree from Florida State University in Fine Arts with emphasis in Graphic Design. He also earned a Master’s Degree from Florida State University in Communication for Interactive and New Communication Technologies and a Graduate Certificate in Project Management from FSU’s College of Communication. Christopher authored many books on web design, most notably the “CSS Cookbook” for O’Reilly Publishing. He produced and led the NonBreaking Space Show podcast, which discussed web design and related issues. Through his company, Heatvision, he hosted web-related professional conferences around the world, improved the accessibility and structure of his clients’ websites, and advocated for a more inclusive Web.
رغم أن نسخة الكتاب قديمة (2007) إلا أني تعلمت الكثير من المعلومات و استطعت تأكيد الكثير مما تعلمته بالتجربة مع السي إس إس.
أعجبني منهج الكتاب المتبع: قسم الكتاب على فصول، في كل فصل يتناول جانب من جوانب السي إس إس، و بدلا من تقدم المعلومات بأسلوب شرح ممل و نظري، لجأ إلى طرح "مسائل" و "مشاكل" قد يواجهها المصمم و التي تتعلق بالفصل، ثم يقدم الجواب للمسألة مع شرح الأساسات المتعلقة بها. فـ تعلمت الأساس النظري في محيط عملي. كان ممتعا جدا.
هناك الكثير الذي أود تدوينه، لكن وقتي لا يسعفني. و أريد الانتقال لكتب أخرى. لذا لن أستطيع تدوين كل ما أود الاحتفاظ به من الكتاب. لكن، مبدئيا:
* أعجبتني كثيرا مسألة تحديد تنسيق الأشياء بشكل أكثر تفصيلا. بمعنى li {} تحدد معالم كل نقطة بشكل عام. لكن حين نستخدم التالي: li+li{} يقوم بتحديد معالم النقاط التي تسبقها نقطة أخرى. يعني ينطبق على النقطة 2 و 3 و .... و لا ينطبق على النقطة 1. و المثل للفقرات و الأشياء الأخرى. هذا مفيد جدا. <- استخدمته فور تعلمي له
* و أيضا أعجبتني كثيرا خاصة تحديد التنسيق بناء على المتحوى في الروابط. مثل: a[href="wa7di.com":]{} تنسق الروابط التي تشير لمدونتي بشكل حصري!. خاصية مبهرة يمكن استخدامها بطرق متعددة. و حين يكتب على شكل: a[title~="happy":]{} أي رابط يحوي عنوانه هذه الكلمة، يتم تنسيقه بهذا. أما حين نكتبه مثلا: a[href|="digital":]{} ينسق الروابط التي تحوي تلك الكلمة مع -. إذن الفكرة العامة: a [attribute=val:]{} (^بدون النقطتين. :/! الجودريدز بشكل تلقائي يضيف نقطتين لهذا النوع من الأقواس.)
*و لكي أتذكر، الأشياء التي تلحق الرابط: a:link, a:visited, a:hover, a:active
*أيضا تعلمت أنه يمكن أيضا التحكم بشكل أكبر بتنسيق الفقرات. من خلال استخدام: p:first-letter{} ينسق أول حرف! p:first-line{} ينسق أول سطر!
* positions: كنت أجد صعوبة في فهم منطقها، لكن الآن فهمت. - absolute: position based on window rather than element's default position. - relative: position modified based to its natural position as rendered by the browser.
* لم أجرب بعد، لكن يقول الكاتب أنه يمكن استخدام أكثر من خلفية في أمر الخلفية. مثال: background: url(x.jpg) center no-repeat, url(y.gif) top center no-repeat, url(x.gif) 40% 24px no-repeat;