NetTalk Central

Author Topic: Combining CSS Classes  (Read 3840 times)

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Combining CSS Classes
« on: March 04, 2010, 03:01:39 PM »
i seem to recall seeing a comment somewhere that one could combine/concatenate nettalk css classes on a template with something similar to  'leftjustify' + 'Boldthings' + 'myway'

is that possible? or was i imagining that?
tia
poul

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Combining CSS Classes
« Reply #1 on: March 04, 2010, 03:37:15 PM »
Bruce covered it in his webinar on NTW5. As far as I know you just leave a space between the classes

eg 'leftjustify boldthings myway'

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Combining CSS Classes
« Reply #2 on: March 04, 2010, 10:01:07 PM »
yes, all places where you put in a CSS class, it can be a space separated list.

Also in NT 5 if your list _starts_ with a space then the override will be "in addition to" what is normally there.
If it starts with a character then it will be "overriding" what is normally there.

cheers
Bruce

Poul

  • Full Member
  • ***
  • Posts: 160
    • View Profile
Re: Combining CSS Classes
« Reply #3 on: March 05, 2010, 07:24:57 AM »
that's exactly what i was looking for - thank you.  It worked as it was supposed to but...
the result still did not snap my 'other' button into the same alignment as my 'change' button on my webbrowse as i expected.

i found a quirk that explains why, my change button had a "CSS class" filled in, on the 'columns property' tab, but it was dimmed out, i could not put this same value on my change button. !?

Ah, However if i change my button to a string, this prompt can be filled in.  then i entered my prompt, put it back to a button and the code now generated things the same so my buttons now line up.

I am using Nettalk4.