oreilly css the definitive guide 3rd edition nov 2006

538 3.5K 0
oreilly css the definitive guide 3rd edition nov 2006

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... need before starting the book is a decent knowledge of HTML 4.0 The better you know HTML, of course, the better prepared you’ll be You will need to know very little else to follow this book This third edition of CSS: The Definitive Guide covers CSS2 and CSS2 .1 (up through the 11 April 2006 Working Draft), the latter of which is, in many ways, a clarification of the first While some CSS3 modules have reached... link: the @import directive: @import url(sheet2 .css) ; Just like link, @import can be used to direct the web browser to load an external style sheet and use its styles in the rendering of the HTML document The only major difference is in the actual syntax and placement of the command As you can see, @import is found inside the style container It must be placed there, before the other CSS rules, otherwise... title, then it becomes a persistent style sheet and is always used in the display of the document Often, this is exactly what an author wants The style Element The style element is one way to include a style sheet, and it appears in the document itself: style should always use the attribute type; in the case of a CSS document, the correct value is "text /css" , just as it was with the. .. document Throughout the rest of this book, we’ll explore the various properties and values that allow presentation like this First, though, we need to look at how one can associate CSS with a document After all, without tying the two together, there’s no way for the CSS to affect the document We’ll explore this in an XHTML setting since it’s the most familiar Bringing CSS and XHTML Together I’ve mentioned... Attributes For the rest of the link tag, the attributes and values are fairly straightforward rel stands for “relation,” and in this case, the relation is stylesheet type is always set to text /css This value describes the type of data that will be loaded using the link tag That way, the web browser knows that the style sheet is a CSS style sheet, a fact that will determine how the browser deals with the data... named basic .css and splash .css, it would look like this: This will cause the browser to load both style sheets, combine the rules from each, and apply them all to the document (We’ll see exactly how the sheets are combined in Chapter 3, but for now, let’s just accept that they’re combined.)... increase or decrease of the space around them; lets you change the way text is capitalized, decorated (e.g., underlining), spaced, and even whether it is displayed at all; and allows you to accomplish many other effects CSS to the Rescue | 3 Take, for example, the first (and main) heading on a page, which is usually the title of the page itself The proper markup is: Leaping Above The Water Now,... determine their appearance While the style sheets used with XML may not be CSS, they will probably be whatever follows CSS and very closely resemble it Therefore, learning CSS now gives authors a big advantage when the time comes to make the jump to an XML-based web So, to get started, it’s very important to understand how CSS and document structures relate to each other It’s possible to use CSS to affect... document Now, let’s examine the various ways this document connects to CSS The link Tag First, consider the use of the link tag: The link tag is a little-regarded but nonetheless perfectly valid tag that has been hanging around the HTML specification for years, just waiting to be put to good use 12 | Chapter 1: CSS and Documents Its... can be used to create the effects that certain HTML elements now provide, so who needs them? Thus, the XHTML specification has a number of elements that are deprecated—that is, they are in the process of being phased out of the language altogether Eventually, they will be marked as obsolete, which means that browsers will be neither required nor encouraged to support them Among the deprecated elements . edition of CSS: The Definitive Guide covers CSS2 and CSS2 .1 (up through the 11 April 2006 Working Draft), the latter of which is, in many ways, a clarifica- tion of the first. While some CSS3 modules. alt="" CSS The Definitive Guide Download from Wow! eBook <www.wowebook.com> Other resources from O’Reilly Related titles HTML & XHTML: The Definitive Guide JavaScript: The Definitive Guide Learning. First Edition. March 2004: Second Edition. November 2006: Third Edition. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. CSS:

Ngày đăng: 31/03/2014, 16:49

Từ khóa liên quan

Mục lục

  • Table of Contents

  • Preface

    • Conventions Used in This Book

    • Property Conventions

    • Using Code Examples

    • How to Contact Us

    • Safari® Enabled

    • Acknowledgments

    • CSS and Documents

      • The Web’s Fall from Grace

        • What a Mess

        • CSS to the Rescue

          • Rich Styling

          • Ease of Use

          • Using Your Styles on Multiple Pages

          • Cascading

          • Compact File Size

          • Preparing for the Future

          • Elements

            • Replaced and Nonreplaced Elements

              • Replaced elements

              • Nonreplaced elements

              • Element Display Roles

                • Block-level elements

                • Inline-level elements

                • Bringing CSS and XHTML Together

                  • The link Tag

                    • Attributes

                    • Alternate style sheets

Tài liệu cùng người dùng

Tài liệu liên quan