General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion CSS selector for nested topic titles

  • Bilderberg

    CSS selector for nested topic titles

    Participants 1
    Replies 2
    Last Activity 7 months, 2 weeks ago

    XMetal Author Enterprise 14.0
    Binary#: 14.0.0.053
    Installer#: 14.0.082

    I've modified ditabase-derived.css to alter the WYSIWYG view in XMetal. However, I can't figure out how to select a topic title that is nested three deep i.e. a subtopic in a subtopic in a topic.

    I've tried the following, and many variations, to no avail:

    [class~=”topic/topic”]>[class~=”topic/topic”]>[class~=”topic/topic”]>[class~=”topic/title”]
    font-size: 15pt;
    }

    Reply

    nhu1

    Reply to: CSS selector for nested topic titles

    Hi,

    Please modify …DITAXACs1.3ditabaseditabase-derived-override.css

    I tried following,

    [class~=”topic/topic”] > [class~=”topic/title”] {
        color: green;
    }
    [class~=”topic/topic”] > [class~=”topic/topic”] > [class~=”topic/title”] {
        color: maroon;
        font-size: 30px;
    }
    [class~=”topic/topic”] > [class~=”topic/topic”] > [class~=”topic/topic”] > [class~=”topic/title”]
    {
        color:red;
        font-size: 40px;
    }

    Regards,

    Ning

    Reply

    Bilderberg

    Reply to: CSS selector for nested topic titles

    Thanks, Ning! It worked perfectly.

    It turned out I had a syntax error.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support