How do you position an element on the screen to the right or left?

Experience Level: Junior
Tags: CSS

Answer

Example

img {
    float: right;
}

img {
    float: left;
}

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