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

196
Vistas
Smelte css. How to create drop down that spans the width of a button with a block attribute?

In this code: https://smeltejs.com/components/menus the button is not set to block. I set the block property to create a button that spans the width of the page.

<Button dark block on:click={() => open = !open}>{selected}</Button>

When I click the button the menu items do NOT span the width of the menu button. I want the menu items to span the width of the menu button and for the menu items text to be centered like the button.

Using SMELTE I have no idea where or what CSS I need to write to make this happen.

about 4 years ago · Juan Pablo Isaza
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