Need a groupbox in web application

  • Thread starter Thread starter Saranya
  • Start date Start date
S

Saranya

hi friends

i want to perform a similar control as that of a group box in my web
application.i m not at all comfortable with panel,html grid layout how
to achieve this

plz tell
 
Saranya said:
hi friends

i want to perform a similar control as that of a group box in my web
application.i m not at all comfortable with panel,html grid layout how
to achieve this

plz tell

<table border="1">
<tr>
<td>
Your content here
</td>
</tr>
</table>
 
Hi Saranya,

You can use the Fieldset tag and legend tags in HTML to create a Groupbox.

See the page code below.

Let us know if this helps?

Ken
Microsoft MVP [ASP.NET]

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Create a Groupbox with Fieldset</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<fieldset class="eventFieldset">
<legend class="legend">Using the Fieldset Element </legend>
<table class="virtualEvents">
<tbody>
<tr>
<td>
<input class="radio" name="group" type="radio"
value="1" /></td>
<td>Use the Legend Tag! </td>
<td>
<input checked="checked" class="radio"
name="group" type="radio" value="0" /></td>
<td>Creates a Groupbox in HTML! </td>
</tr>
</tbody>
</table>
The FIELDSET element allows authors to group thematically
related controls and labels. Grouping controls makes it easier for users to
understand their purpose while simultaneously facilitating tabbing
navigation for visual user agents and speech navigation for speech-oriented
user agents. The proper use of this element makes documents more accessible.
<br />
<br />
Reference:
http://www.w3.org/TR/html4/interact/forms.html#edef-FIELDSET</fieldset>
</div>
</form>
</body>
</html>
 
Back
Top