How do you set fixed height of specific div element?
Experience Level:
Junior
Tags:
CSS
Answer
#main-button {
height: 50px;
}
Related CSS job interview questions
-
How can you verify whether the element is block or in-line and how can you change this?
CSS Junior -
What is CSS class?
CSS Junior -
During styling you often need to find some element on the screen and see what space it occupies. What do you usually do?
CSS Junior -
You are styling some element and it is not rendering as you want it to. What do you usually do in such case?
CSS Junior -
How do you set border on an element?
CSS Junior