thecodezone.
The Code Zone

CSS / DISPLAY PRACTICE · STEP 1 OF 6

Arrange study-session labels

GUIDED PRACTICE

Arrange study-session labels

Open styles.css for this step. Follow the checklist, keeping your earlier work. Keep index.html unchanged during this step.

Your code stays in one editor through every step. Word wrap is enabled.

Step 1 of 6

Stack the session notices

A span is inline by default. Changing its display to block gives it a new line. The two notices will stack even though their HTML remains spans. CSS changes their layout, not their meaning.

Your task

Open styles.css for this step. Follow the checklist, keeping your earlier work. Keep index.html unchanged during this step.

To pass this step:

  • In styles.css, find the existing rule with selector .notice outside all media blocks.
  • Set its display property to block.
  • Keep both notices and all supplied page content.
  • Look for two orange rows in the preview.

Press the play button labeled Run & check this step below the editor to run your code and see your check results.

A hint for this step

A declaration goes inside the selector’s braces. Here is one focused rule from this step: ``css .notice { display: block; }

Your editor is opening.

Each step builds on the last. Finish the current step before opening the next one; your code stays with you.

Code and completed steps save in this browser when signed out. Sign in to save across devices.

Resources for this step

Looking things up is part of programming. Compare these explanations with the task, then return and try the idea in your own code.

Ready to checkRun the checks to see your results here.

Replace your editor code?

Your current work will be replaced. Choose Cancel to keep it.