Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8061599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:23:29+00:00 2026-06-05T10:23:29+00:00

basically I want to make a button using a div container. It’s a play/pause

  • 0

basically I want to make a button using a div container. It’s a play/pause button, the symbol I use inside the button is bold “ll” for pause and the symbol “►” for play.

However when I switch the symbols with javascript inside the button. the width of the div also changes. As the symbol “►” is a little wider than the bold “ll”.

So how can I make the div with a fixed width, so that the “div-box” does not shrink nor expand?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:23:31+00:00Added an answer on June 5, 2026 at 10:23 am

    Got it fixed, actually display:inline-block; works but not for all browsers. I ended up finding a good solution which is to use <button>, which by itself is a inline div and you can modify it’s dimensions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically what I want to know how to do is to make a button
I basically want to make things easier by just looping LinkButtons instead of making
Basically I want to make simple toggle program (that will be mapped to some
I want to make a site where there user can basically navigate the web
I want to make the equivalent of a python dict in R. Basically in
I want to make an application witch involves logging into google. It is basically
Basically, I want to make clicking anywhere on a page except in an input
I have to make a constructor for an ArrayList. So basically what I want
So I want to be able to basically make instances of a class from
I basically want to achieve what a RadioButtonList does, without using that control (i.e.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.