Home > front end >  HTML positioning problem
HTML positioning problem

Time:09-26

Why didn't the right in the first line on the right, isn't it inline block elements?

CodePudding user response:

Add a float, float

CodePudding user response:

The
reference 1 floor huangfuyk. Response:
add a float, float

What's the difference

CodePudding user response:

Div block-level default a line, have not set the position of top; Z - index. Do not use the background color and transparent, the inside of the element will follow transparent, transparent background color directly use rgba format if only about layout does not need to position. The two div display: inline - block; Float; Flex. The table can be implemented

CodePudding user response:

Div is not inline elements, that is the concept of different, had better not use absolute positioning to achieve layout, conventional layout using float, you can also use the grid, flex fluid layout, such as flexible layout

CodePudding user response:

reference 4 floor xiaoxiang dream response:
div is not inline block elements, this is a different concept, had better not use absolute positioning to achieve layout, conventional layout using float, you can also use the grid, flex fluid layout, such as flexible layout

After using absolute positioning into inline block element
  • Related