Cascading Style Sheets Tutorial

A study css

  Cascading Style Sheets: The Definitive Guide, 2nd Edition is a thorough review of all aspects of CSS2.1 and a comprehensive guide to CSS implementation. The book includes new content on positioning, lists and generated content, table layout, user interface, paged media , and more. It explores in detail each individual CSS property and how it interacts with other properties, and shows how to avoid common mistakes in interpretation. 
  W3c the Css Home: 
  Http://www.w3.org/Style/CSS/ 
  1 css document and 
  1.1 elements 
  Html elements in very easily identified, such as p, table, span, a, div. 
  Xml element in the definition of the dtd, or xml schema definition.    Some representatives of each element of its manifestations. 
  Css each element can be produced as a box, the box containing the contents of the elements.     1.1.1 element type: replaced and nonreplaced elements, block-level and inline-level elements  
  Replaced elements: the content of elements can be not directly from the document that the contents of the replacement.    Xhtml is typical in the img, which can be directed to external picture files instead of paper. 
   Input elements can be different according to their type, and was radio button, checkbox, text input box instead.  
   Replaced elements have also displayed a box.  
  Nonreplaced elements: html and most elements are xhtml nonreplaced.    In other words, the content of these elements by the user agent (user agent, which usually refers to the browser) in the box elements expressed in the present.    (Box is not the corresponding element in a region on the page?). 
   For example <span> hi there </ span> is nonreplaced, text hi here will be user agent to display.  
  Block-level element block elements: create a box element, the element of his father box filled with the contents of the region, and its other elements on both sides did not.    By default, that is to say the circumstances of each block-level delegation are separate.    For example, p, div.    List items is a special kind of block elements.    To block with the other elements of a unified, for disorderly lists have a symbol, such as bullet; for the orderly lists have a figure.    Add to symbols or numbers on the box elements.    Apart from the symbolic expressions, the other characteristics with the rest of the elements of the same block. 
  Inline-level element in the elements: create a box element, which is his text, and not a separate delegation.    A typical example is in a xhtml elements, and as strong, em.    Because of the elements will not interrupt its before and after the show, the elements appear in the other elements of the case will not interrupt other elements to display. 
  NOTE: xhtml and html element in the block can not inherit from the inside of the element, but there is no similar provision in css.    There is no restriction element nested way. 
  Http://www.cfan.com.cn/school/pro/html/2007-01-13/1168655000d36593.shtml 
   Block elements (block element) is generally the other elements of container elements, block elements of the new firms generally, it can accommodate the elements within the block and other elements common block elements are paragraphs labels' P.      "Form" rather special block elements, it can only be used to accommodate other block elements.  

   If not css the role of block will be the order of elements from each other has always been his way down the row.      With css and after, we can change this default html layout mode, the block element you want to display the forward position.      Rather than each other since his foolish.      It must be pointed out that the table tag is a block element, table based layout and css based layout from general users (not including visual impairment, blind, etc.) both the perspective of the layout, in addition to pages load faster the difference, and no other difference.      But if ordinary users inadvertently point the button to view the page source code, as shown by the two very big differences.      Based on the concept of good design Reconstruction css page layout source, at least it did not allow the development of web users to experience the general content of fast read.      From this perspective, css layout code should have better aesthetic experience it.  

   You will be able to block elements div containers imagination into one box, or if you played clip contained, then there would be more easily understood.      We first need to articles from a variety of newspapers and magazines cut down the total.      Each block is cut down the contents of a block.      Then we put these pieces of paper according to its own layout intent, using glue to paste to a new blank piece of paper.      The result of your own unique Digest of the Express.      As a technical extension of page layout design also followed the same pattern.      .  

   In the elements (inline element) are generally based on the semantic level (semantic) the basic elements.      The only element within accommodate within the text or other elements within the common elements "a."  

   Block elements (block element), and the elements (inline element) are html norms in the concept.      Block elements and the elements within the block is the fundamental differences between the new elements will generally begin.      When joined the css control, the block elements and the elements within the same attribute the difference is not a difference.      For example, we can cite the added element of the display: block this attribute, he has every attribute the beginning of the new line.  

   Variable element is the basic concept of the context he needs to ascertain the relationship between the elements within the block element or elements.      Variable element or elements of the above two categories, once set the context of his category, he will have to follow the block element or elements within the rule.      See generally classified by the elements.  

   Ps: on inline element of the Chinese name, with the various elements of the embedded elements, elements of the industry, Straight-elements.      Basically there is no uniform translation, how love is how it is.      Also mentioned in the elements, we think there is a display attribute is the display: inline; this property to repair the famous floating IE double the border issue.  

   Block elements (block element)  
   * Address - Address  
   * Blockquote - block quote  
   * Center - cited in the alignment block  
   * Dir - Contents List  
   * Div - commonly used block-level easily, but also the major labels css layout  
   * Dl - Definitions List  
   * Fieldset - form the control group  
   * Form - Interaction Forms  
   * H1 - headline  
   * H2 - subheading  
   * H3 - three Title  
   * H4 - four Title  
   * H5 - five Title  
   * H6 - six Title  
   * Hr - Boundary level  
   * Isindex - input prompt  
   * Menu - on the menu  
   * Noframes - frames optional content (for not supporting frame of the browser displays the contents of this block  
   * Noscript -) optional script content (for the script does not support the browser displays the contents)  
   * Ol - sort form  
   * P - paragraphs  
   * Pre - formatted text  
   * Table - Forms  
   * Ul - sort of non-List  

   In the elements (inline element)  
   * A - Anchor  
   * Abbr - initials  
   * Acronym - the first word  
   * B - bold (not recommended)  
   * Bdo - bidi override  
   * Big - big fonts  
   * Br - newline  
   * Cite - quote  
   * Code - computer code (source quoted in the time required)  
   * Dfn - defined fields  
   * Em - that  
   * Font - font settings (not recommended)  
   * I - in italics  
   * Img - Photo  
   * Input - the input box  
   * Kbd - definition of keyboard text  
   * Label - Forms labels  
   * Q - short quote  
   * S - in line (not recommended)  
   * Samp - defined examples of computer code  
   * Select - Project Selection  
   * Small - small text fonts  
   * Span - commonly used in the containers, within the definition of the text block  
   * Strike - in line  
   * Strong - bold stressed  
   * Sub - subscript  
   * Sup - superscript  
   * Textarea - lines of text input box  
   * Tt - telex text  

   * U - underscore  
   * Var - defined variables  

   Variable element  
   Variable element based on the context Context decision to block the element or elements within the element.  
   * Applet - java applet  
   * Button - buttons  
   * Del - delete text  
   * Iframe - inline frame  
   * Ins - Insert text  
   * Map - picture blocks (map)  
   * Object - object object  
   * Script - Client  

  One example: 

<body>

  <p> This is a paragraph with <em> an inline element </ em> within it. </ P> 

  </ Body> 

  There are two cases on the block elements, p and body, one of the elements em. 
  In xhtml em in from the p inheritance, not the contrary.    In xhtml of the elements within the block can be inherited from the elements, not the contrary. 
  In css no such requirement, css can change the structure of the cases.    P (display: inline;) 
  Em (display: block;) 
  In the inline box insert block box.    Effects: 
  Change the elements to display in the role in the xhtml useful.    Xml file does not have any role in the succession of shows that, by definition very important to css. 

<book>

  <maintitle> Cascading Style Sheets: The Definitive Guide </ maintitle> 

  <subtitle> Second Edition </ subtitle> 

  <author> Eric A. Meyer </ author> 

  <publisher> O'Reilly and Associates </ publisher> 

  <pubdate> 2004 </ pubdate> 

  <isbn> Blahblahblah </ isbn> 

  </ Book> 

<book>

  <maintitle> CSS2 Pocket Reference </ maintitle> 

  <author> Eric A. Meyer </ author> 

  <publisher> O'Reilly and Associates </ publisher> 

  <pubdate> 2004 </ pubdate> 

  <isbn> Blahblahblah </ isbn> 

  </ Book> 

  The default display: 

 

  Use css to define showed levels: 

  Book, maintitle, subtitle, author, isbn (display: block;) 

  Publisher, pubdate (display: inline;) 

  Now Showing: 

 

  Showing role to influence the characteristics of the display roles in a variety of circumstances css highly useful reason. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: CSS DIV, CSS effect, css manuals, css templates, div css, div css layout

Releated Posts

  • CSS options
  • XML and CSS
  • Css structure
  • CSS ֱ
  • CSS entry [to]

This entry was posted on Friday, January 18th, 2008 at 12:00 am and is filed under Css+Div Web Design. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« The grammatical form borders. Css
Css picture filters Daquan »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial