Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

180
Visualizações
how to display events side by side in fullcalendar

enter image description here enter image description here

How can I display events side by side in fullCalendar? The first image is my output but I need it to be like the second image. This is a fullCalendar view (fullcalendar.js).

How do I set automatic width for the events without spacing?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

FullCalendar is setting an inline CSS inset style on .fc-timegrid-event-harness, the second of which has a left value of 50% .. hence it starting half way over.

Try this for 4 on a row (25% each)

.fc-daygrid-event-harness, .fc-timegrid-event-harness { max-width: 25%; float: left; }

.fc-timegrid-event-harness:nth-child(1n) { inset: 0px 0% -21px 0% ! important; }
.fc-timegrid-event-harness:nth-child(2n) { inset: 0px 0% -21px 25% ! important; }
.fc-timegrid-event-harness:nth-child(3n) { inset: 0px 0% -21px 50% ! important; }
.fc-timegrid-event-harness:nth-child(4n) { inset: 0px 0% -21px 100% ! important; }

or for two on a row, try

.fc-daygrid-event-harness, .fc-timegrid-event-harness { max-width: 50%; float: left; }

.fc-timegrid-event-harness:nth-child(1n) { inset: 0px 0% -21px 0% ! important; }
.fc-timegrid-event-harness:nth-child(2n) { inset: 0px 0% -21px 50% ! important; }

This was previously an inline style, that I am overriding, the -21px bottom value came from my setup.. yours may need adjusting.

Will probably need a little adjustment to suit your sizes and styles enter image description here

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda