Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

190
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!