Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51
Use just 'border-radius' for Opera. IE needs some heavy lifting via jquery or similar. In short, IE blows.
The only form field I found impossible to style to my liking is the file upload field. As they are rendered completely differently in browsers, js browser detection is required to style successfully. This is not good. The file field unfortunately is not a button + textbox, it's one object. My own workaround was to make a 'faux button' with a transparent strip showing the 'filename area' beneath. It didn't work consistently across different resolutions.
Sorry - not a hijack - if anybody knows of a style system that includes file fields, please post here.
diafol
Rhod Gilbert Fan (ardav)
7,795 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
diafol
Rhod Gilbert Fan (ardav)
7,795 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
set borders to none or 0:
input[type=text]{
border:none;
}
Then place a background graphic that has a rectangular shape:
input[type=text]{
border:none;
width: 400px;
background-image: url(images/textbox_bg.gif);
padding: 4px;
}
Should do it. Width is important to stop text from carrying on beyond the graphic.
diafol
Rhod Gilbert Fan (ardav)
7,795 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080