Background for Specific Elements
I need to be able to style a text element inside a gray box. Here’s an example (see #1 and #2):
I don’t know MultiMarkdown well enough to see if there is an markup code I could use, so I just created a custom style sheet and created this class:
.setoff { background:#eeeeee; font-size:90%; line-height:140%; margin-left:12pt; margin-right:12pt; padding: 6pt; }
Then, inside my markdown document, it looks like this:
This is where you state what your purpose is for each account. Again, using my Health account as an example, I say this:
The Statement of Purpose for my Friends account is this:
The problem is when I try to put a bulleted list inside the gray box. It wraps all the paragraphs together (see #3 in the screenshot above).
There’s probably a simple CSS fix for this, but I can’t figure it out.
Can you help? Thanks.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 28 Jun, 2013 04:59 PM
Use blockquotes:
> This is my blockquoted text
Then just style blockquotes as needed.
-Brett
2 Posted by Michael Hyatt on 28 Jun, 2013 05:16 PM
I’m already using blockquotes for standard quotes. I suppose I could nest them. Hmmm.
3 Posted by Michael Hyatt on 28 Jun, 2013 05:18 PM
The problem is getting the bullets inside the gray box. The line element seems to override the gray box wrapper, whether it’s in a blockquote or a class.
Support Staff 4 Posted by Brett on 28 Jun, 2013 05:23 PM
What's a line element?
You only have so many elements available in Markdown, and classes aren't an option without adding the additional HTML. You might look into Kramdown as a custom processor. It's pretty easy to install and allows you to add classes to block elements. Still, though, if you need multiple elements within a container, you'll have to wrap it in a div.
-Brett
5 Posted by Michael Hyatt on 28 Jun, 2013 05:38 PM
Sorry, I was referring to a line element in HTML: <li>
The problem is that even if I use a DIV (which is easy enough), bulleted lists get wrapped inside of them. That was what I was trying to show in #3 on the screenshot.
Thanks for your help.
Support Staff 6 Posted by Brett on 28 Jun, 2013 05:54 PM
Ah, I get it. "li" stands for list item, just for clarity :).
Turn on the option in behavior to render HTML as Markdown.
-Brett