The stylesheet
So, we can now give it some style. Stylesheets can take up a lot of time in tuning and getting them just right, visually. Create the static/display.css file to hold this style information. If you think my color choices are terrible, please feel free to substitute your own; search w3c colors to find suitable colors to use. Names or hex (#1ab3c5) colors can be used.
CSS styles sections start with a selector, a way to match objects in the HTML page. These can be made from tag names, class names prefixed with a full stop, or ids prefixed with a # mark. For a comprehensive look at css selectors, see the additional reading. Each section uses braces {} to delimit a section of style. The styles in that section are made of a property ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access