Skip to content
Snippets Groups Projects
Commit 5807737a authored by Greg Wilson's avatar Greg Wilson
Browse files

Showing how to use elements for challenges

parent 3e5706e4
Branches
Tags
No related merge requests found
---
title: "Using Divs"
teaching: 5
exercises: 0
questions:
- "Should we use div instead of blockquote for challenge?"
objectives:
- "Show the differences between divs and blockquotes for challenges."
keypoints:
- "The CSS changes are surprisingly small."
---
This is a challenge formatted using a `div`:
<div class="challenge" markdown="1">
## Challenge Title as H2
This is the text explaining the challenge.
~~~
this code
is part of
the challenge
~~~
{: .source}
> ## Solution
>
> We can put the solution(s) in blockquotes inside the `div`.
> Or we could define yet another `div`.
{: .solution}
</div>
......@@ -75,6 +75,7 @@ $codeblock-padding: 5px !default;
.keypoints{ @include bkSetup(#682047, "\e101"); }
.objectives{ @include bkSetup(#667932, "\e085"); }
.prereq{ @include bkSetup(#BD6F7A, "\e124"); }
.solution{ @include bkSetup(#F5A9A9, "\e105"); }
.testimonial{ @include bkSetup(#C0A92A, "\e143"); }
//----------------------------------------
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment