Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda