NetTalk Central

Author Topic: Span Header Columns  (Read 4593 times)

mpetitjean

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Nola Ridge
    • Email
Span Header Columns
« on: August 28, 2007, 09:40:28 AM »
     Is there a simple way to span two or more header columns (with one test entry) in a NetWebBrowse browse?

     I want to have 48 columns in the table but only 24 Header columns to represent the hours of the day with the hours broken into half hour segments in the table itself.

Alan Telford

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: Span Header Columns
« Reply #1 on: August 29, 2007, 12:18:48 PM »
One way is to have the 24 columns which gives you the 24 headers you want.
Then in each column instead of having a single field, have a formula which shows both half-hours
  first_half & ' ' & second_half

Format the formula anyway you want.

Alan

mpetitjean

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Nola Ridge
    • Email
Re: Span Header Columns
« Reply #2 on: August 31, 2007, 03:51:33 AM »
    Using the CSS style sheet solved this problem for us.  I created three classes in our custom style sheet, myHeaderRight, myHeaderLeft and myHeaderBoth.  Next the border line was removed from the myBrowseTable th custom class.  The three classes are as follows:

.myHeaderLeft {
  text-align: left;
  border-left: 0px;
  border-top: 1px solid #555;
  border-bottom: 1px solid #CCC;
  border-right: 1px solid #CCC;
}

.myHeaderRight {
  text-align: right;
  border-right: 0px;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  border-bottom: 1px solid #CCC;
}

.myHeaderBoth {
  text-align: center;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  border-bottom: 1px solid #CCC;
  border-right: 1px solid #CCC;
}

    This method lets us skip borders on every other cell in the head and alligns the text in each header cell to make it appear the text is one word.