HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-03-09
1 <p><b>Loading…</b>Everything will be ready in few seconds</p>
1 <p><b>Loading…</b>Everything will be ready in few seconds</p>
2 <ul><li>Theory</li>
2 <ul><li>Theory</li>
3 <li>Theory</li>
3 <li>Theory</li>
4 <li>Comments</li>
4 <li>Comments</li>
5 </ul><h2>The adaptive horizontal menu, part 3</h2>
5 </ul><h2>The adaptive horizontal menu, part 3</h2>
6 <p>You can also use Flexbox to manage the visual sequence of items without having to change the HTML code.</p>
6 <p>You can also use Flexbox to manage the visual sequence of items without having to change the HTML code.</p>
7 <p>Let’s replace one of the menu items with a logo block, and then we can easily reposition it to various places using the order property.</p>
7 <p>Let’s replace one of the menu items with a logo block, and then we can easily reposition it to various places using the order property.</p>
8 <h2>Comments</h2>
8 <h2>Comments</h2>
9 <ul><li>index.html</li>
9 <ul><li>index.html</li>
10 <li>style.css</li>
10 <li>style.css</li>
11 </ul><p>HTML</p>
11 </ul><p>HTML</p>
12 <p>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;Adaptive menu, part 3&lt;/title&gt; &lt;link href="course.css" rel="stylesheet"&gt; &lt;link href="style.css" rel="stylesheet"&gt; &lt;/head&gt; &lt;body class="subtle"&gt; &lt;header&gt; &lt;div class="logo"&gt; &lt;img src="img/keksby.svg" alt=""&gt; &lt;/div&gt; &lt;div class="menu"&gt; &lt;div&gt; &lt;a href="#"&gt;Meat&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Fish&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Sour Cream&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Milk&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Cheese&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/header&gt; &lt;/body&gt; &lt;/html&gt;</p>
12 <p>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;meta charset="utf-8"&gt; &lt;title&gt;Adaptive menu, part 3&lt;/title&gt; &lt;link href="course.css" rel="stylesheet"&gt; &lt;link href="style.css" rel="stylesheet"&gt; &lt;/head&gt; &lt;body class="subtle"&gt; &lt;header&gt; &lt;div class="logo"&gt; &lt;img src="img/keksby.svg" alt=""&gt; &lt;/div&gt; &lt;div class="menu"&gt; &lt;div&gt; &lt;a href="#"&gt;Meat&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Fish&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Sour Cream&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Milk&lt;/a&gt; &lt;/div&gt; &lt;div&gt; &lt;a href="#"&gt;Cheese&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/header&gt; &lt;/body&gt; &lt;/html&gt;</p>
13 <p>CSS</p>
13 <p>CSS</p>
14 <p>.menu { display: flex; justify-content: space-around; } .logo { }</p>
14 <p>.menu { display: flex; justify-content: space-around; } .logo { }</p>
15 <p>Thanks! We’ll fix everything at once!</p>
15 <p>Thanks! We’ll fix everything at once!</p>
16 <p>The code has changed, click “Refresh” or turn autorun on.</p>
16 <p>The code has changed, click “Refresh” or turn autorun on.</p>
17 <p>You’ve gone to a different page</p>
17 <p>You’ve gone to a different page</p>
18 <p>Click inside the mini-browser to shift the focus onto this window.</p>
18 <p>Click inside the mini-browser to shift the focus onto this window.</p>
19 <p>100%</p>
19 <p>100%</p>
20 <ol><li>Cut the .logo block and paste it inside the menu to replace the div with the text Sour Cream.</li>
20 <ol><li>Cut the .logo block and paste it inside the menu to replace the div with the text Sour Cream.</li>
21 <li>Then assign center alignment for the items along the cross axis for the .menu.</li>
21 <li>Then assign center alignment for the items along the cross axis for the .menu.</li>
22 <li>Assign the flex item sequence number -1 to the .logo block,</li>
22 <li>Assign the flex item sequence number -1 to the .logo block,</li>
23 <li>and then assign it 1.</li>
23 <li>and then assign it 1.</li>
24 </ol>
24 </ol>