Avatar
HTML/CSS
CSS selectors
Styling
Public
New
HTML/CSS
HTML is the standard markup language for creating web pages. It's an essential skill for anyone creating web pages of any complexity.
CSS selectors
Selectors are a programming pattern that can be used to select an element from a container. They are primarily used in technologies such as CSS and jQuery to apply styles to groups of elements.
Styling
Styling user interfaces according to the specification is a daily routine for a front-end developer.
Public
Public questions (free account) are common interview questions. They are great for practicing, or if you want to filter candidates using the classic problems.
New
This is a part of latest question addition to our question library.
Every user on your website has an image avatar that is displayed when they post a comment. You want to style these images differently from other images on your site. Add a CSS class named avatar that fulfils the following requirements:
- The avatar's border is rounded, so that it appears as a circle.
- The avatar's width and height are both 150px.
- The avatar has a solid border, has a width of 2px, and be colored gray.
For example, the avatar in the template should look like:
HTML5, CSS3
- Avatar shape: Wrong answer
- Avatar size: Wrong answer
- Avatar border: Wrong answer