How can you verify whether the element is block or in-line and how can you change this?

Experience Level: Junior
Tags: CSS

Answer

Example

#main-button {
    display: inline;
}

#main-button {
    display: block;
}

Related CSS job interview questions
CSS for beginners
CSS for beginners

Are you learning CSS? Try our test we designed to help you progress faster.

Test yourself