How do you set margin on each side of a div element to different value?

Experience Level: Junior
Tags: CSS

Answer

Example

dive  {
    margin: 4px 5px 9px 3px;
}

Comments

No Comments Yet.
Be the first to tell us what you think.
CSS for beginners
CSS for beginners

Are you learning CSS ? Try our test we designed to help you progress faster.

Test yourself