NetTalk Central

Author Topic: help with spanning columns In a browse  (Read 5346 times)

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
help with spanning columns In a browse
« on: September 16, 2015, 04:23:57 PM »
Hi all, I must be missing something obvious, maybe someone an point it out to me ?

In a browse I have a long text string
I am trying to span it over a couple of columns to make the column wider  see img 1

Maybe my first step is the error, I added a dummy column to the right of my text and set the the text header and column to span 2 columns  Img 2
Error 1 - The header of the table drops its blue background and shows white
Error 2 - the data does not span into the second column
My settings are in img 3 & 4 for the header and data

Thanks
K

[attachment deleted by admin]

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: help with spanning columns In a browse
« Reply #1 on: September 16, 2015, 06:51:37 PM »
Hi Kev,

I'v never used that feature but I would use Firebug to inspect that column with your data in it. Maybe it splits the existing column into 2?

As for what you are trying to do, I think you need to use CSS to force the column to be wider.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: help with spanning columns In a browse
« Reply #2 on: September 16, 2015, 07:29:49 PM »
Hi Kevin,

That span is only useful for multi-row browses.

I'm probably with Kevin on this one - set a width, or minwidth for the column.

Cheers
Bruce

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: help with spanning columns In a browse
« Reply #3 on: September 17, 2015, 02:35:37 AM »
OR you could do this........ <V B Grin>

change "text"  to  "Description showing the scores for each lesson"

See updated image

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: help with spanning columns In a browse
« Reply #4 on: September 17, 2015, 07:27:17 AM »
if all you want is non-wrapped text, then just add the class
' nt-nowrap'
to the CSS for the cell.

cheers
Bruce

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: help with spanning columns In a browse
« Reply #5 on: September 19, 2015, 11:52:15 PM »
Thanks for that Bruce, is there anywhere in the docs that lists these little gems like ' nt-nowrap' 
I did not know it existed, and do not know where to start to look for them besides "they are in the source code"

Thanks
K

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: help with spanning columns In a browse
« Reply #6 on: September 20, 2015, 12:33:24 AM »
Hi Kevin,

These things are not documented as such (we could also use a "WebServer methods and properties" section in the docs!).

But there is something you can do: try browsing the netweb.css file. Inside that you'll find your 'list of gems': tons of little css classes that you can use for formatting and coloring your elements. Also reading about css to find out what is actually possible is highly recommended ;-)

Peter

MyBrainIsFull

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: help with spanning columns In a browse
« Reply #7 on: September 21, 2015, 11:07:20 PM »
THanks for that Peter, looks like an evenings light reading