Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Hoe maak ik een selectiebar?

Posted by: msucimaster May 23 2020, 06:11 AM

Ik wil graag iets maken zoals op het bijgevoegde plaatje:

Attached Image

De bedoeling is dat je op elk vlakje kan klikken en dan gaat hij aan en de volgende keer weer uit.

Ik weet dat je zoiets met checkboxes kan doen. Maar op deze manier krijg je een veel strakkere layout.

Alleen: hoe maak je zoiets?

Posted by: pandy May 23 2020, 06:25 AM

You've spoken English before so... wink.gif

Posted by: msucimaster May 23 2020, 08:08 AM

Sorry, wrong language.

I want to make something like the picture.

The example of the picture allows you to select one or more languages. Click one time and a box is selected. The next time it is unselected.

You can achieve this kind of functionality with checkboxes. But I want a nicer design like this. But how can I make such a thing?

Posted by: Christian J May 23 2020, 08:39 AM

QUOTE(msucimaster @ May 23 2020, 03:08 PM) *

The example of the picture allows you to select one or more languages.

How can you use several languages at the same time? unsure.gif

QUOTE
You can achieve this kind of functionality with checkboxes. But I want a nicer design like this. But how can I make such a thing?

Here's one idea: https://css-tricks.com/the-checkbox-hack/ (but like the page says, javascript might be more suitable for things like this).


Posted by: pandy May 23 2020, 10:09 AM

It also depends on what the buttons is supposed to "do" exactly. Do you have several hardcoded copies of the site in different languages? Then a link is enough. Do you have a program with built in language options? A link with a query string could work or be made to work.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)