Copied to clipboard

Flag this post as spam?

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


  • Kevon K. Hayes 255 posts 280 karma points
    Jan 28, 2011 @ 23:55
    Kevon K. Hayes
    0

    How to control the width the the <legend> in Contour

    This doesn't work: JQuery per http://our.umbraco.org/forum/umbraco-pro/contour/11447-Contour-Tip-working-with-Legends

    $("legend").each(function() {
    var t = $(this).text();
    $
    (this).html("<span>" + t + "</span>");
     
    });

    This JQuery just wraps the legend:  //getting close... almost...

    $(document).ready(function () {
                $("legend").each(function () {
                    $(this).wrap('<span/>');
                });
                    });

    And Tim Geyssens suggestion on http://our.umbraco.org/forum/umbraco-pro/contour/11447-Contour-Tip-working-with-Legends doesn't work at all.

    Any help welcome. Venligst

  • Jan Skovgaard 11258 posts 23500 karma points MVP 7x admin c-trib
    Jan 29, 2011 @ 17:22
    Jan Skovgaard
    1

    Hi Kevon

    Have you checked with firebug or some other tool for debugging to see if your script is not returning an error?

    Where have you placed the script exactly?

    /Jan

  • Kevon K. Hayes 255 posts 280 karma points
    Jan 31, 2011 @ 17:08
    Kevon K. Hayes
    0

    Actually the  second script works in all browsers except IE7... Just makes me want throw an Anti-IE Party.  I used display: block for Span tag but IE7 still doesn't obey.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies