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 6777663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:10:29+00:00 2026-05-26T16:10:29+00:00

Anyone know how to get around this problem? I’m doing some custom button styling.

  • 0

Anyone know how to get around this problem? I’m doing some custom button styling. It looks fine in Firefox:

Button as rendered by Firefox

But it doesn’t look right in Chrome 15.0.874.106:

enter image description here

The top border has some dark pixels in the center of the button. They only show up when the button gets to be at least a certain width.

Here’s the CSS:

.mybutton, .mybutton:visited {
  display: inline-block;
  padding: 5px 10px 6px;
  color: #fff;
  text-decoration: none;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.25);
  position: relative; 
  cursor: pointer;
  font-size: 13px; 
  font-weight: bold; 
  line-height: 1; 
  text-shadow: 0 -1px 1px rgba(0,0,0,0.25);
  background-color: #ccc;
}

.mybutton:active { 
  top: 1px; 
}
.mybutton:hover { 
  background-color: #aaa; 
  color: #fff; 
}

I’ve searched for other mentions of this problem but so far haven’t found anything. Anyone else encounter this before?

  • 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-26T16:10:29+00:00Added an answer on May 26, 2026 at 4:10 pm

    It appears to be this

    border-bottom: 1px solid rgba(0,0,0,0.25);

    that is causing the problem.

    When I remove it, all is good… even with many words in the button.

    Example: http://jsfiddle.net/kW3u4/2/

    Tested on Chrome 15.0.874.106 on Windows

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

Sidebar

Related Questions

Anyone know how to get this to work if it's possible? class Foo def
Update: To get around this problem I created a simply filewatcher which would touch
I can't quite get my head around this particular problem, and I'm hoping you
Anyone know how to get the position of a node using XPath? Say I
Does anyone know how to get IntelliSense to work reliably when working in C/C++
Does anyone know how to get the MS Office 2007 .NET C# Interop libraries
Does anyone know how to get the below to report a javascript error? (any
Does anyone know how to get the operating system information from a microsoft sql
Does anyone know how to get the correct mouse position during a drag-and-drop operation
Does anyone know how to get the list of items and check/uncheck items in

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.