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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:52:54+00:00 2026-06-02T17:52:54+00:00

When using -webkit-transform: translateX(0%) on a parent container the file name label text disappears

  • 0

When using -webkit-transform: translateX(0%) on a parent container the file name “label” text disappears from the standard <input type="file"> element in Chrome. In Safari the text is also hidden but upon file selection the icon for the file is displayed.

http://jsfiddle.net/9sZxv/

Merely adding and removing a class such as:

.transX
{
    -webkit-transform: translateX(0%);
}​

To the parent div in:

<div id="test1">
    <input type="file">
</div>

Will cause the text No file chosen, or the file name if a file is selected to disappear.

Tested with- Win7: Chrome 19 and Safari 5.1

Is there a fix or workaround? The file select element isn’t friendly to CSS styling and there isn’t any element to reference just the text part directly so I am at a lost on how to approach this issue.

  • 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-02T17:52:55+00:00Added an answer on June 2, 2026 at 5:52 pm

    If you apply a zoom to the input box in Chrome you can see that it is moving the text underneath:

    http://jsfiddle.net/9sZxv/4/

    This is definitely a hack, but you can move the file input button down to the same level as the text with this css:

    .transX input::-webkit-file-upload-button {
        -webkit-transform: translateY(26px);
    }
    

    And then set the file input to have a negative top to make it look normal.

    .transX
    {
        position: relative;
        overflow: hidden;
        height: 22px;
        -webkit-transform: translateX(20px);
    }
    
    .transX input
    {
        padding-bottom: 26px;
        top: -26px;
        position: absolute;
    }
    

    Here’s an example: http://jsfiddle.net/9sZxv/2/

    If that doesn’t work, you could try making your own file input using the opacity trick described here: http://www.quirksmode.org/dom/inputfile.html

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

Sidebar

Related Questions

<style type=text/css> @-webkit-keyframes waveArm{ 0%,100% { -webkit-transform:rotate(0deg); } 10%,30%,50%,70%,90% { -webkit-transform:rotate(90deg); } 20%,40%,60%,80% {
Using -webkit-transform: rotate(-5deg); on a container div, Chrome renders the grid of images with
I am using -webkit-transform (and -moz-transform / -o-transform) to rotate a div. Also have
I applied the following CSS transform to an HTML input box. -webkit-transform: scale(.5); When
I'm trying to move some panes (divs) under a menu (div) using a -webkit-transform:
Using CSS3s -webkit-transform: translate3d(x,y,z); is it possible to trace the (x,y,z) movement as it
I'm using webkit-transform: translate3d and a few other properties pretty extensively on a mobile
I'm moving a very long image using -webkit-transform: translate(-958px, 0); animation The image gets
I'm building a simple example to flip a card using the -webkit-transform: rotateY property.
So I'm using CSS to rotate some text from horizontal to vertical (90 degrees)

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.