curriculum/challenges/english/blocks/learn-css-flexbox-by-building-a-photo-gallery/6153893900438b4643590367.md
Align your .header text in the center. Make the text uppercase using the text-transform property with uppercase as the value.
Give it a padding of 32px on all sides. Set the background to #0a0a23 and the text to #fff as the color values.
Add a border-bottom with 4px solid #fdb347 as the value.
You should have a .header selector.
assert.exists(new __helpers.CSSHelp(document).getStyle('.header'));
Your .header selector should have a text-align property set to center as the value.
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.textAlign, 'center');
Your .header selector should have a text-transform property set to uppercase as the value.
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.textTransform, 'uppercase');
Your .header selector should have a padding property set to 32px as the value.
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.padding, '32px');
Your .header selector should have a background-color property set to #0a0a23 as the value.
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.backgroundColor, 'rgb(10, 10, 35)');
Your .header selector should have a color property set to #fff as the value.
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.color, 'rgb(255, 255, 255)');
Your .header selector should have a border-bottom property set to 4px solid #fdb347 as the value.
assert.equal(new __helpers.CSSHelp(document).getStyle('.header')?.borderBottom, '4px solid rgb(253, 179, 71)');
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Photo Gallery</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<header class="header">
<h1>css flexbox photo gallery</h1>
</header>
<div class="gallery">
</div>
</body>
</html>
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: sans-serif;
background-color: #f5f6f7;
}
--fcc-editable-region--
--fcc-editable-region--
.gallery img {
width: 100%;
max-width: 350px;
height: 300px;
}