This is a migrated thread and some comments may be shown as answers.

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

1 Answer 86 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Wired_Nerve
Top achievements
Rank 2
Wired_Nerve asked on 29 Oct 2013, 03:46 PM
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>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 31 Oct 2013, 07:37 AM
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.
Tags
General Discussions
Asked by
Wired_Nerve
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or