Link to home
Start Free TrialLog in
Avatar of micro_learner
micro_learner

asked on

TEXT IN TABLE BORDER

Hi I am new to designing in HTML ..(been a Java/Perl programmer throughout)

I was wondering how I can get a Table border with text embedded in it .

Something Like

----------This is the Text-----------


I searched the tutorials online but could not get hold on one that does this ..

Apreciate your help.Thanks
ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
btw: You can use

* css if you want to set the size of the group box.
* put a table inside the <fieldset> if you need to display tabular data.

complete example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
     <title>Test</title>
<style type="text/css">
.aGroupBox{ /* CSS rules for the group box - the fieldset is assigned to this class by class="aGroupBox" */
    width:500px;
    height:120px;
}
</style>
</head>
<body>
<fieldset class="aGroupBox">
    <legend>This is a label</legend>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td>This is a cell</td>
        </tr>
        <tr>
            <td>This is the content</td>
        </tr>
        <tr>
            <td>This is the content</td>
        </tr>
    </table>
</fieldset>
</body>
</html>        
SOLUTION
Avatar of Roonaan
Roonaan
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial