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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:17:05+00:00 2026-06-10T14:17:05+00:00

Basically I have an <input type=file /> that is inside of a div and

  • 0

Basically I have an <input type="file" /> that is inside of a div and I would like to make the textbox portion of that input fill the entire div. Ideally the button part would be outside of the parent div and not clickable. I have been able to set the width using size but I can’t seem to set the height. You can see an example of what i’m talking about here: http://jsfiddle.net/LrpFn/1/

I found some info on styling input type=file, but most of it is related to styling the button. Is it possible to set the height of the textbox?

My end goal is to create a div where people can drag and drop files, so my plan is to fill this entire div with the text area of the input and then set opacity to 0. I’m open to other suggestions as well…

  • 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-10T14:17:07+00:00Added an answer on June 10, 2026 at 2:17 pm

    Have you considered using file drop? Does not support old browsers, but does not require any input at all.

    http://www.html5rocks.com/en/tutorials/dnd/basics/

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

Sidebar

Related Questions

I basically have a program that filters records from one excel file to another
I have a problem in PHP. I am using <input type=file> to get the
Basically I have a series of divs which contains a label and an input
I basically have 7 select statements that I need to have the results output
Basically I have a site where I want the user to input something, have
I have 4 input fields that when numbers are entered into one of the
I have a minor problem, basically I have a hidden input button which is
Basically, I have this form that allows user to upload to my server: <form
I'm trying my best to make this make sense, but basically I have a
I have a form, basically to upload a file. I am submitting the form

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.