Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
237 views
in Technique[技术] by (71.8m points)

html - What are the CSS properties that get elements out of the normal flow?

What are the CSS properties that get elements out of the normal flow? Such properties would be float, position:absolute etc.

This question relates to all the possible alterations of the normal flow.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Only the following properties affects the normal flow of any given element:

  • float: right|left
  • position: absolute|fixed

Just for completeness:

  • display: none removes the element from the flow (strictly speaking the element will not have a flow order)

  • position: relative does not change the flow order of the element, but changes its position relative to the normal flow position.

  • visibility: hidden will maintain the element on the flow but will not render it to the viewport.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...