Background for Specific Elements

Michael Hyatt's Avatar

Michael Hyatt

28 Jun, 2013 04:52 PM

I need to be able to style a text element inside a gray box. Here’s an example (see #1 and #2):

http://www.screencast.com/t/oWqGuSPu

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:

My purpose is to maintain and care for the temple God has given me.

The Statement of Purpose for my Friends account is this:

My purpose is to befriend and love a few people well who will in turn love, challenge, and hold me accountable.

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.

  1. Support Staff 1 Posted by Brett on 28 Jun, 2013 04:59 PM

    Brett's Avatar

    Use blockquotes:

    > This is my blockquoted text

    Then just style blockquotes as needed.

    -Brett

  2. 2 Posted by Michael Hyatt on 28 Jun, 2013 05:16 PM

    Michael Hyatt's Avatar

    I’m already using blockquotes for standard quotes. I suppose I could nest them. Hmmm.

  3. 3 Posted by Michael Hyatt on 28 Jun, 2013 05:18 PM

    Michael Hyatt's Avatar

    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.

  4. Support Staff 4 Posted by Brett on 28 Jun, 2013 05:23 PM

    Brett's Avatar

    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. 5 Posted by Michael Hyatt on 28 Jun, 2013 05:38 PM

    Michael Hyatt's Avatar

    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.

  6. Support Staff 6 Posted by Brett on 28 Jun, 2013 05:54 PM

    Brett's Avatar

    Ah, I get it. "li" stands for list item, just for clarity :).

    Turn on the option in behavior to render HTML as Markdown.

    -Brett

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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