The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Hoe maak ik een selectiebar?
msucimaster
post May 23 2020, 06:11 AM
Post #1


Newbie
*

Group: Members
Posts: 11
Joined: 29-April 20
Member No.: 27,307



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?

This post has been edited by msucimaster: May 23 2020, 06:12 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 23 2020, 06:25 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



You've spoken English before so... wink.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
msucimaster
post May 23 2020, 08:08 AM
Post #3


Newbie
*

Group: Members
Posts: 11
Joined: 29-April 20
Member No.: 27,307



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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post May 23 2020, 08:39 AM
Post #4


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



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).

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post May 23 2020, 10:09 AM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 03:20 PM