How do you set fixed height of specific div element?

Experience Level: Junior
Tags: CSS

Answer

Example

#main-button {
    height: 50px;
}
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