Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

accordion effect without clicking only as hover

4 views
Skip to first unread message

Markus Grob

unread,
Oct 20, 2015, 5:31:38 PM10/20/15
to
Hello together

I've searched for a while, but couldn't find a solution.
I have a big table with a lot of subentrys.
For showing them small, I like to hide the subelements until the mouse
hovers the mainpoint.

As example:

Main1
Main2

-> holds effectivly:

Main1 - sub1
- sub2
- sub3
Main2 - sub1
- sub2



And so on. I have found examples with :target, but then every entry has
to be clicked to expand. Examples with display:block and :hidden doesn't
seems to work.

Does someone knows a flexible solution, as the entrys are generated by
the database and for this, I can't use fixed hights.

Sincerely, Markus

dorayme

unread,
Oct 20, 2015, 7:01:15 PM10/20/15
to
In article <n06bnp$s38$1...@dont-email.me>,
Markus Grob <sno...@ilnet.ch> wrote:

> Hello together
>
> I've searched for a while, but couldn't find a solution.
> I have a big table with a lot of subentrys.
> For showing them small, I like to hide the subelements until the mouse
> hovers the mainpoint.
>
> As example:
>
> Main1
> Main2
>
> -> holds effectivly:
>
> Main1 - sub1
> - sub2
> - sub3
> Main2 - sub1
> - sub2
>
>

Do these old things help?

<http://dorayme.netweaver.com.au/alt/dropdownMenus/ddVar.html>

<http://dorayme.netweaver.com.au/alt/dropdownMenus/dropdown.html>

<http://dorayme.netweaver.com.au/alt/dropdownMenus/dropdownHoriz.html>

--
dorayme

tlvp

unread,
Oct 21, 2015, 12:13:03 AM10/21/15
to
On Tue, 20 Oct 2015 23:31:36 +0200, Markus Grob wrote:

> Hello together

OT, but having spent a pleasant year as an exchange researcher at ETH
Zürich, I think I detect in the above what English Google Translate might
have offered in exchange for the " Grüetsi miteinand' " of the original
/Limmatblüten/. Oder?

(If so, more evidence that machine translation can only do so much :-) .)

If I'm way off base, please forgive. Cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP.

Thomas 'PointedEars' Lahn

unread,
Oct 22, 2015, 10:45:49 AM10/22/15
to
Markus Grob wrote in <news:comp.infosystems.www.authoring.html>:

> I have a big table with a lot of subentrys.
> For showing them small, I like to hide the subelements until the mouse
> hovers the mainpoint.
>
> As example:
>
> Main1
> Main2
>
> -> holds effectivly:
>
> Main1 - sub1
> - sub2
> - sub3
> Main2 - sub1
> - sub2
>
> And so on. I have found examples with :target, but then every entry has
> to be clicked to expand. Examples with display:block and :hidden doesn't
> seems to work.

Since this is a stylesheet issue, you should ask in .stylesheets. X-Post &
F'up2 there.

Are the ?sub?? in a separate column? What *exactly* do you wish to happen,
and what *exactly* have you tried to achieve that (exact or minimum markup
and CSS)?

> Does someone knows a flexible solution, as the entrys are generated by
> the database and for this, I can't use fixed hights.

(_heights_) Probably you do not have to.

I also recommend that you use transitions for a better UX. This, too, is
possible without client-side scripting nowadays.


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee

Markus Grob

unread,
Oct 23, 2015, 2:27:28 AM10/23/15
to
dorayme schrieb:
Thank you, but this isn't what I'm searching for, because they need the
space on the screen and only set the visibility.
I have to collapse the submenues, so that I have the space. I will
describe it in the other answer.

Sincerely, Markus




Markus Grob

unread,
Oct 23, 2015, 2:31:08 AM10/23/15
to
tlvp schrieb:
> On Tue, 20 Oct 2015 23:31:36 +0200, Markus Grob wrote:
>
>> Hello together
>
> OT, but having spent a pleasant year as an exchange researcher at ETH
> Zürich, I think I detect in the above what English Google Translate might
> have offered in exchange for the " Grüetsi miteinand' " of the original
> /Limmatblüten/. Oder?

I don't have used Google, but have tested it now: It gives me "Hello
everybody". Is this better in this case? As I haven't learned english
well at school, I try my best to be understood.

;-)

Sincerely, Markus

tlvp

unread,
Oct 23, 2015, 7:08:01 PM10/23/15
to
First, let me say I'm glad your " ;-) " shows you take my comments as
light-heartedly as I offered them.

Next, I quite agree that miteinand' is often very well rendered by together
-- perfect for children playing together (miteinander) or schoolmates
eating together, etc.

But in the Grüetsi miteinand' context, while Hello is acceptable for the
Grüetsi component, Greetings probably comes closer to giving the same
flavor, and the miteinand' part is probably rendered even better by All
than by Everybody -- so I'd substitute: Greetings, all (or in the US South,
Greetings, y'all)!

Finally, of course, others might prefer Greetings, everybody. Or yet other
stuff. Basically, Grüetsi miteinand' is just another of those uniquely
untranslatable expressions that every language has its share of.

Cheers/Ciao/Tschüss, -- tlvp
0 new messages