cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
A few problems with cForm's upload file buttons (.cform input.upload)
March 1, 2011
12:15 am
classer
Guest

I am facing a number of problems regarding cForm's upload file buttons.

 

First of all, I am not able to style cForm's upload file buttons because apparently the element does not exist or something.

 

The best I can do is style the background of the element with this code:

.cform input.upload {

    width: 270px;

    background: red;

    border: none;

    outline: none;

}

The input type='file' element shows up differently in Chrome and Firefox even before trying to alter it. In Firefox it shows up like a textfield with a Browse… button to the left of it. In Chrome it shows up simply as a button. In each case though I can not style the button aspect.

 

All I can style successfully is the background color but that of course shows up differently in FF and Chrome. (I can't even affect the borders of the element in FF) 

 

In FF the background color of the text field gets affected. 

 

 

 

 

In Chrome the background of the DIV containing the button get styled.

 

 

 

 

 

 

 

How can I make it so the Firefox rendering shows up like Chrome's rendering of <input type='file'>?

Also, How can I target and style the button element?

 

 

 

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3732

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5332

Posts: 18695

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)