The Local Stylesheet
Part of the Fundamentals section of Coddy's Tailwind CSS journey. Lesson 4 of 55.
The local stylesheet imports Tailwind with @import 'tailwindcss';. For example, pb-4 in an HTML class attribute becomes 16 pixels of bottom padding after compilation. The linked CSS file and the literal class name are both part of this pipeline.
<div class="pb-4">Museum sample</div>This workspace already provides the compiler, so you do not install packages or add a CDN script. Keep the stylesheet link and import, edit complete utility names in HTML, and press Run preview again to rebuild the preview. Numeric spacing uses a 0.25rem unit, normally 4 pixels: multiply the utility number by 4 to find the pixel spacing.
Challenge
EasyGive the schedule panel 24 pixels of bottom padding while keeping its stylesheet import and link intact.
Keep the supplied content and element IDs. Edit the HTML utility classes or the requested CSS. Click Run preview to refresh the preview after edits, then use Check/Run code to grade your work.
Try it yourself
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Practice studio</title><link rel="stylesheet" href="./styles.css"></head><body>
<div id="target" class="">Schedule</div>
</body></html>
This lesson includes a short quiz. Start the lesson to answer it and track your progress.
All lessons in Fundamentals
1Meet Tailwind
A Styled First RunChoosing UtilitiesCombining UtilitiesThe Local StylesheetRecap: Meet Tailwind