Cascading Style Sheets: Separating Content from Presentation

Bok av Owen Briggs
CSS is one of the trio of core client-side web professional skills: HTML for markup, JavaScript for dynamism, and CSS for style. All web professionals who want to take their page design to the next level, with all the advantages that CSS brings, will need this book. This book is a focused guide to using Cascading Style Sheets (CSS) for the visual design of web pages. It provides concise coverage of all the essential CSS concepts developers need to learn (such as separating content from presentation, block and inline elements, inheritance and cascade, the box model, typography, etc). It also covers the syntax needed to effectively use CSS with your markup document (for example CSS rules, how to structure a style sheet, linking style sheets to your (X)HTML documents, CSS boxes etc). CSS (Cascading Style Sheets) is a powerful technology that can be used to add style and structure to your web pages without needing to resort to "hacks" such as HTML table layouts and "spacer images". However, this is not the only advantage over other styling methods. You can specify your CSS styles in a separate file, then apply those styles to every page in your web site. When you want to change a style on your site, you can do it by modifying one style sheet, rather having to update every page. This is only one example of the many advantages CSS brings to your web development work.