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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:41:13+00:00 2026-05-30T22:41:13+00:00

I am theming a Drupal website, so far so good. I am using Profile

  • 0

I am theming a Drupal website, so far so good. I am using Profile pictures 6.x-1.4 on a Drupal 6.24 platform.

I have got to the point of an image upload field, which by default looks like this:
Original upload helper

The design demands it to look like this:

What it needs to look like

So far I have set the inputs css to this:

 #user-register #edit-profile-picture-upload {
    display: block;
    background: transparent url(../images/button-upload.png) no-repeat scroll center center;
    width: 130px;
    height: 158px;
 }

And this is the html for the filefield:

<div class="form-item" id="edit-profile-picture-upload-wrapper">
  <label for="edit-profile-picture-upload">Upload: </label>
  <input type="file" name="files[profile_picture_upload]"  class="form-file" id="edit-profile-picture-upload" size="40" />
</div>    

But it only looks like this (on chrome & safari, much much worse on Firefox):

What its coming out like

How would you theme this correctly? Or at least where is the “Choose file/ No file chosen” button coming from?

  • 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-30T22:41:14+00:00Added an answer on May 30, 2026 at 10:41 pm

    Styling an input type=”file” is not easy since this type of input is totally browser dependant…

    But you will find a lot of answers here : https://stackoverflow.com/search?q=style+input+file

    You can, for example :

    • hide the file input,
    • replace it with a div (or else)
    • trigger click on file input when clicking on the div

    PS: this is not a drupal issue

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

Sidebar

Related Questions

I am theming a drupal content type, and I have a set of similarly
I'm using diazo for theming, and I have a problem with all popups. I'm
i am new to drupal theming. i want to do the following: i have
I came across a strange behavior while theming Drupal. I turned a few modules
I've been reading about Drupal theming and preprocess functions and noticed they listed engineName
I'm new to WordPress theming and have downloaded the Starker's WP theme from starkers
I'm using the jquery dialog plugin and the default is to have all 4
I manage a Drupal 7 based website for my College's Student's Association. Most of
I am theming some report tables and do not have access to the templates.
Has anyone got an thoughts on how to handle theming a WSS site for

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.