I think you should keep the table as is and add the needed divs using
javascript on table loading. In this way you can keep a "correct" table
for NS or any other standard compliant browser, and dynamically change
it only for ie.

fabrizio



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mehta,
Jasmin
Sent: Friday, October 03, 2003 8:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [displaytag-user] How to modify the HMTL structure

The current display table tag is rendering in to below HTML code:

<table class="report">

 <thead>
  <tr>
        <th>ID</th>
        <th>Name</th>
        <th>Email</th>
        <th>Status</th>
        <th>Comments</th>
  </tr>
 </thead>

 <tbody>
        <tr class="odd">

                <td class="idcol">94468</td>
                <td>Gubergren Sed</td>
                <td>[EMAIL PROTECTED]</td>
                <td class="tableCellError">INVIDUNT</td>
                <td>ea accusam...</td>
    </tr>  
    <tr class="even">

                <td class="idcol">42424</td>
                <td>No Et</td>
                <td>[EMAIL PROTECTED]</td>

                <td class="tableCellError">ET</td>
                <td>et est...</td>
    </tr>

     .....
 </tbody>
</table>

Now though, the style sheet for <tabody> has overflow: auto style, like
below:

  table.report tbody {overflow: auto; }

It doens't show the effact of scrollbar in IE, it does in NN.

In that situation, I should use, one <div> for header and other for
table content. Like below example: 

<html>
<head>
<style type="text/css">
        #tempbody
        {
          height: 100px;
          overflow:auto;
          border-color: green;
          border-style: solid;
      border-width: 2px;
    }
    #temphead
        {

                  border-color: red;
                  border-style: solid;
              border-width: 2px;
    }
  </style>
</head>
<body>

<div id="temphead">

<table border=1>
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Email</th>
<th>Status</th>
<th>Comments</th>
</tr>
</thead>
</table>
</div> <!--  end of temphead div -->

<div id="tempbody">
<table border=1>
<tbody>
<tr>

  <td>94468</td>
  <td>Gubergren Sed</td>
  <td>[EMAIL PROTECTED]</td>
  <td>INVIDUNT</td>
  <td>ea accusam...</td>

</tr>

<tr>

  <td>94468</td>
  <td>Gubergren Sed</td>
  <td>[EMAIL PROTECTED]</td>
  <td>INVIDUNT</td>
  <td>ea accusam...</td>

</tr>

<tr>

  <td>94468</td>
  <td>Gubergren Sed</td>
  <td>[EMAIL PROTECTED]</td>
  <td>INVIDUNT</td>
  <td>ea accusam...</td>

</tr>

<tr>

  <td>94468</td>
  <td>Gubergren Sed</td>
  <td>[EMAIL PROTECTED]</td>
  <td>INVIDUNT</td>
  <td>ea accusam...</td>

</tr>
</tbody>
</table>
</body>
</html>

How can I create something like or some simialr solution to work around
by, what classes modification?

Thanks
Jasmin 
   
-----Original Message-----
From: Andy Pruitt [mailto:[EMAIL PROTECTED]
Sent: Friday, October 03, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: RE: [displaytag-user] How to modify the HMTL structure


Just curious, but what effect are you trying to achieve?  My experience
so far has
been that CSS and the existing attributes are sufficient to get the
effects 
I need.

TableTag and HtmlTableTag and output most of the html, along with some
help 
from ColumnTag.
 

> -----Original Message-----
> From: Mehta, Jasmin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 03, 2003 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: [displaytag-user] How to modify the HMTL structure
> 
> 
> Hi,
> 
> 
> What java classes I can modify to modify theb generated 
> <table> tag of HTML?
> 
> Thanks
> Jasmin
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> displaytag-user mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to