CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: MentalBlock - CollapsibleSections  (Read 245 times)

coothead

  • Full Member
  • ***
  • Posts: 126
  • Karma: +19/-0
  • I smile benignly
    • coothead's stuff ~ an eclectic collection
Re: MentalBlock - CollapsibleSections
« Reply #30 on: 10 Jan 2021, 02:15:16 pm »
Quote from: GrumpyYoungMan
  • You are a genius
  • especially if that is dynamically generatable!
Unfortunately
  • is not true
  • is not possible

cothead
~ the original bald headed old fart ~

GrumpyYoungMan

  • Sr. Member
  • ****
  • Posts: 393
  • Karma: +4/-0
    • GrumpyYoungMan
Re: MentalBlock - CollapsibleSections
« Reply #31 on: 11 Jan 2021, 03:11:37 am »
Quote from: GrumpyYoungMan
  • You are a genius
  • especially if that is dynamically generatable!
Unfortunately
  • is not true
  • is not possible

cothead

Thanks, but actually I can, as long as I have the #expand* in the CSS - is there not a way in CSS to make a range say #expand[1-10]?

Thanks again!
Trying to learn a new trick to prove old dogs can learn new ones...

Total Novice have-a go Amateur Programmer - not sure that is the right thing to say... but trying to learn...

coothead

  • Full Member
  • ***
  • Posts: 126
  • Karma: +19/-0
  • I smile benignly
    • coothead's stuff ~ an eclectic collection
Re: MentalBlock - CollapsibleSections
« Reply #32 on: 11 Jan 2021, 06:45:31 am »
Quote from: GrumpyYoungMan
...is there not a way in CSS to make a range say #expand[1-10]?

Well,   what  I do is code this snippet...
Code: [Select]
#expand1:checked ~ table tbody tr:nth-of-type(2) ul,

...using my digits and the keyboard,  and C&P it.

I then  increase the value of #expand by 1 and
change the value of type() to suit.

I repeat this process until  I have the desired
number of items. Finally I remove trailing
comma of this last item.

In the HTML I numbered all the tr elements to
help with the type() value changing.

That's about as dynamic as get.  ;D

Of course, you must bear in mind that, unlike
many others, I have nothing better to do.  8)

coothead
~ the original bald headed old fart ~

 

SMF spam blocked by CleanTalk

Advertisement