CSS Integration

Julián's Avatar

Julián

Sep 19, 2014 @ 08:55 AM

Help!
I can't get general sibling selectors to work from my css styles!! Is this a compatibility issue?

For example,
h1 ~ p{
    ...
}

does nothing!

Thank you

  1. Support Staff 1 Posted by Brett on Sep 19, 2014 @ 12:04 PM

    Brett's Avatar

    It's because within the Marked preview, Marked wraps blocks following
    headers with section tags to allow collapsible sections. If this feature
    isn't important to you, disable it under "Preview" preferences
    (Headlines collapse sections). If it _is_ important, you can use:

    h2 ~ section p:first-of-type {

    to achieve similar effect, but that will break when you export.

    -Brett

  2. 2 Posted by gomezbiagi on Sep 19, 2014 @ 01:33 PM

    gomezbiagi's Avatar

    Dear Brett,

    You are amazing!
    Thanks for all your great work.

    Julián
     On 2014-09-19 8:04 AM, "Brett" <
    [email blocked]> wrote:

  3. Brett closed this discussion on Sep 25, 2014 @ 12:34 PM.

Comments are currently closed for this discussion. You can start a new one.

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