Glossary
- Background image
- Border color
- Border radius
- Border width
- Borders
- Class attribute
- Color
- Comment
- First-child selector
- Font family
- Font size
- Font style
- Font weight
- Height
- Linking a style sheet
- Margin
- N-th-child selector
- Overflow property
- Padding
- Pixels
- Position property
- Rounding an image
- Selectors
- Text align
- Transition property
- Width
CSS
Pixels in CSS
We measure the height and width of an element in pixels, like 50px
. Pixels are tiny points that make up what you see on a screen.
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h3>Two different theories</h3>
<img class="round" src="https://mimo.app/r/earth.png">
<img class="flat" src="https://mimo.app/r/earth.png">
</body>
.flat {
height: 50px;
width: 100px;
}
.round {
height: 100px;
width: 100px;
}
Sign up or download Mimo from the App Store or Google Play to enhance your programming skills and prepare for a career in tech.