CSS display
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
The CSS display module defines how the CSS formatting box tree is generated from the document element tree and defines properties controlling it.
Reference
Properties
- {{CSSxRef("display")}}
- {{CSSxRef("order")}}
- {{CSSxRef("visibility")}}
- {{cssxref("reading-flow")}}
- {{cssxref("reading-order")}}
Data types
- {{CSSxRef("<display-outside>")}}
- {{CSSxRef("<display-inside>")}}
- {{CSSxRef("<display-listitem>")}}
- {{CSSxRef("<display-box>")}}
- {{CSSxRef("<display-internal>")}}
- {{CSSxRef("<display-legacy>")}}
Glossary terms and definitions
- {{glossary("block/css", "Block")}}
- Block formatting context (BFC)
- {{glossary("Block-level content")}}
- Containing block
- Flow layout
- {{glossary("Reading order")}}
- {{glossary("Replaced elements")}}
- {{glossary("Ruby")}}
Guides
- Using the multi-keyword syntax with CSS display
- : Describes the multi-keyword syntax and compares this syntax with legacy single-keyword values.
- Block and inline layout in normal flow
- : The basics of how block and inline elements behave when they are part of the normal flow.
- Flow layout and overflow
- : How overflow works when working with normal flow.
- Flow layout and writing modes
- : How flow layout behaves when used with different document writing modes.
- Introduction to formatting contexts
- : Formatting contexts, including block, inline, and flex, their behaviors, and use.
- In flow and out of flow
- : What takes elements out of flow, and the effect of creating new Block Formatting Contexts.
Related Concepts
Properties
- {{cssxref("overflow")}}
- {{cssxref("transition-behavior")}}
Glossary terms and definitions
- {{glossary("Flex")}}
- {{glossary("Grid")}}
- Inline formatting context
- {{glossary("Inline-level content")}}
Guides
- CSS flexible box layout module
- Basic concepts of flexbox
- Aligning items in a flex container
- Controlling ratios of flex items along the main axis
- Mastering wrapping of flex items
- Ordering flex items
- Relationship of flexbox to other layout methods
- Typical use cases of flexbox
- CSS grid layout module
- Basic concepts of grid layout
- Relationship of grid layout to other layout methods
- Line-based placement
- Grid template areas
- Layout using named grid lines
- Auto-placement in grid layout
- Box alignment in grid layout
- Grids, logical values and writing modes
- CSS grid layout and accessibility
- Realizing common layouts using grids
Specifications
{{Specifications}}
See also
- CSS lists and counters module
- CSS ruby layout module
- CSS table module
- Visual formatting model