How do you set border on an element?

Experience Level: Junior
Tags: CSS

Answer

Example

div {
    border: solid 1px #2f3cd1;
}
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