Topic RSS
Related Topics
12:15 am
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?
Most Users Ever Online: 959
Currently Online:
58 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: 3552
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5159
Posts: 18392
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote










