What is the difference between inline-block and block display properties in CSS?
- Inline elements flow in a line, and only take as much width as necessary. Block elements start on a new line and take the full width available.
- Inline-block elements combine the features of both inline and block elements. They flow in a line and can have a width set.
- Block elements are used for inline-level content, while inline-block elements are used for block-level content.
- Inline elements are used for block-level content, while block elements are used for inline-level content.
The correct option explains that inline-block elements combine features of both inline and block elements, allowing them to flow in a line and have a set width.
Loading...
Related Quiz
- Your company is migrating its infrastructure to the cloud. How would you design a robust monitoring and logging strategy to support this transition and ensure visibility into the new environment?
- Which JavaScript framework is widely used for building scalable and maintainable web applications, featuring two-way data binding?
- TDD promotes writing _______ that fail before writing new code to pass them.
- What is the time complexity of accessing an element in an array?
- Which Git command is used to view the branches that have been merged into the current branch?