Question: How do we make two block-level elements in the same row?
Reply:
1. Set float property \ (^o^)/~
The CSS format for block-level elements is set to Float:left/right, for example, there are two Panel,panela and Panelb, want to be on the same line, only need to set a CSS format for float:left/right. (Note: Just set the float property of a Oh, if the float property of B is set, then the element after B is also on the same line.) ), if you use this method, two block-level elements are next to each other. Examples of effects:
2. Set display to Inline-block, that is, to write CSS code display:inline-block. Using this method, two block-level elements have a certain interval between them. Note that the method is the same as the previous method, and you still need to set the display property of a, not the property of B. Examples of effects: