Any telerik control that solves the fieldset legend centering issue in firefox..

2 posts, 0 answers
  1. Wired_Nerve
    Wired_Nerve avatar
    163 posts
    Member since:
    Oct 2007

    Posted 29 Oct 2013 Link to this post

    So I have used a DIV solution to make a div that centers the legend in all the major browsers, but it is
    not "clean" and easy...  

    Has telerik made a control that will do this and allow easy legend manipulation?

    I have a attached an image...
      The primary issue is that in the
         LEGEND tag the align=center is not longer in the w3 specs and should not be used... But
         it is the easiest way in firefox to get it centered... 


    <
    fieldset>
    <legend align="center" >Test Fieldset</legend>
    <div>
    <p>This is just an area that will hold other info...The primary issue is that in the
        LEGEND tag the align=center is not longer in the w3 specs and should not be used... But
        it is the easiest way in firefox to get it centered... </p>
    </div>
    </fieldset>

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 31 Oct 2013 Link to this post

    Hi Warren,

    Telerik does not provide any control to deal with your requirement. The align attribute of <legend> is deprecated in HTML 4.01 and it is no longer supported in HTML5. Still this works in most browsers but "you should use CSS to pass the validation". You can set "margin: auto" to the <legend> which works fine in IE and Chrome. In Firefox you need to give custom styling to center the legend such as margin-left:45%.

    Thanks,
    Shinu.
Back to Top