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

  • Home
  • SEARCH
  • 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 7660399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:27:38+00:00 2026-05-31T13:27:38+00:00

I have a simple html button that I wrap into a div . I

  • 0

I have a simple html button that I wrap into a div. I know that such buttons may render differently on different browsers.

<div id="but_begin"><button type="button" id="but2_begin">Go</button></div>

I have set the following CSS on the button (using JQuery):

$("#but2_begin").css({
    backgroundColor: "yellow",
    width:50
});

and it renders as follows:

enter image description here

I would like to get rid of the shadows around it and make the corners round. Now, I am getting a little scared when I read all the info available on the net about button layout and round corners. It does not seem to converge at all.

My question: how can I set round corners on a HTML button in a portable way? Is this possible with CSS only? Or should I use a library? Or should I use a different HTML tag or method?

  • 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-05-31T13:27:38+00:00Added an answer on May 31, 2026 at 1:27 pm

    You should use CSS3 to generate rounded corners and text-shadows in a portable way. http://css3generator.com/ is a neat tool that can help you do so.

    More and more browsers are supporting CSS3 and major browsers such as the latest versions of Chrome, IE, Safari, Opera, and Firefox (covering over 90% of users) certainly support it.

    For instance, this code from http://css3generator.com/ reliably creates rounded borders in a multitude of browsers.

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site that has a simple HTML button in a form. All
This is probably a basic html/css question... I have a simple one-button form that
I have a simple image inside an HTML form that acts as a button.
I have simple html with div and button . Also i have a css
I have a simple html page with a div. I am using jQuery to
I have a simple HTML (as HTA) application that shows strange behavior on Windows
I have a simple html form that submits information with POST function. But when
I have a simple page that pops up a telerik radwindow on button click.
I have simple html page and need to post data (title/text) from that page
I have a simple HTML page (ratings.html) that I'm trying to test using HtmlUnit.

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.