Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Grant 21 posts 61 karma points
    Nov 20, 2013 @ 07:46
    Grant
    0

    Icons gone crazy

    I am using bootstrap with my umbraco project all is going well. However if I put an icon in an xslt file it appears all over the page, for instance in my navigation for dropdowns to have the nice caret at the end. Literally every where all over the page. Thoughts?

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 20, 2013 @ 08:26
    Stefan Kip
    101

    Sounds like the tag for the icon (an 'i' or 'span' tag I presume?) isn't getting closed well.
    You can try this:

    Change your xsl:output method to be html (instead of xml).
    Or add it if you haven't already got the element

    <xsl:output method="html"/>

  • Grant 21 posts 61 karma points
    Nov 22, 2013 @ 03:42
    Grant
    0

    Thank you very much.

  • Niels Kristiansen 166 posts 382 karma points
    Nov 30, 2013 @ 00:01
    Niels Kristiansen
    0

    Another way to deal with the issue you have is the following:

    <i class="icon-search"><xsl:text> </xsl:text></i>
    

    It will prevent the i tag from "collapsing"

    Then you can keep the original settings :)

    /Niels

  • Grant 21 posts 61 karma points
    Dec 02, 2013 @ 16:01
    Grant
    0

    Good to know, thanks Niels

Please Sign in or register to post replies

Write your reply to:

Draft