15 November 2001: W3C is pleased to announce the advancement of "Selectors" to Candidate Recommendation. Selectors are patterns in the Cascading Style Sheets (CSS) language that match to elements in HTML and XML. This specification describes the CSS1 and CSS2 selectors and new selectors for CSS3. A test suite is available. Please send your comments by May 2002 and read more on the CSS home page.
http://www.fan.gr.jp/~kaz/rec-css2/visudet.html#the-width-property ここの「10.3.3 通常フローの非置換ブロック要素の場合(Block-level, non-replaced elements in normal flow)」 を読む限り、ブロックレベル要素の width を auto にした場合 ( デフォルトが auto なので指定しない = auto を指定 ) margin-left や margin-right に指定した auto は 0 と算出される。
543さんありがとうございます。お教えいただいた方法でできました。 図々しいのですが、さらに --------------------- | A | | D | |---| B |-----| | C | | E | -------------------- とする方法もあれば教えていただきたいのですが。。 思ったより難しくて苦戦しています。いじってるうちに詳しくなれるでしょうか、、
>>703 既出かもしれませんが、一応。 HTML 2.xのclass属性はSGML NAME tokenなので、日本語は使えません。 HTML 4.0/4.01のclass属性はcdata-listなので、日本語も使えます。 XHTML 1.0のclass属性も同上。 XHTML 1.1/XHTML Basicのclass属性はNMTOKENSなので、日本語は使えません。 #Modularization of XHTMLで、class属性の定義が変更された為(CDATA→NMTOKENS)。 http://www.kanzaki.com/docs/html/xmodules.html#s_cmnatts 参照。
>>840 と言うか、サイズを指定しないと自動テーブルレイアウトアルゴリズム(table-layout: auto)になるのでは。 http://www.w3.org/TR/1998/REC-CSS2-19980512/tables.html#fixed-table-layout > The table's width may be specified explicitly with the 'width' property. > A value of 'auto' (for both 'display: table' and 'display: inline-table') means use the automatic table layout algorithm.