Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS Form Input Cross Browser Fun
Old 02-16-2005, 11:39 AM CSS Form Input Cross Browser Fun
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Just wondering, does anyone here style their inputs quite a lot? I'm trying to fit my inputs in with the design of my page, but not having a lot of luck. I can get it working on 1 out of 3 main browsers that I test it on (IE6, Opera and Firefox) but they all look totally different. They all seem to ignore the height property, IE ignores the border property, and I've got a button next to an input for my search but I can never get the button the same height as the text box....

What does everyone else do?
Are there any tutorials or articles on this?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
 
Register now for full access!
Old 02-16-2005, 05:36 PM
faze1's Avatar
Ultra Talker

Posts: 389
Trades: 0
Hi Minaki,

Well of course you can do border stuff, and change the texts apperance, but you can also add background images in the input boxes. Here is an example of what I mean, http://test.faze1.net, please forgive the site, I was trying to add some color to my design and I guess this attempt went horribly wrong. Anyway check the login box under the logo.

Heres an example of the css:
Code:
input.yourclass {
 background: #fff url('yourimage.gif') no-repeat scroll 2px center; 
 border: 1px groove #aaa;
 padding-left: 20px;
 font: 11px Arial, Helvetica, sans-serif; color: #aaa;
 text-align: left;
}
I'm not sure of a tutorial but through goofing around I have found css can effect most form elements the same as any other element.

Have fun,
__________________
[size=2]
Please login or register to view this content. Registration is FREE
- Webhosting - Focusing on quality service
faze1 is offline
Reply With Quote
View Public Profile Visit faze1's homepage!
 
Old 02-17-2005, 12:36 AM
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
Save the headache and use an image for the button:

Code:
  <INPUT TYPE="image" NAME="submit" src="images/btnSubmit.gif" border="0" alt="Submit">
Rinse and repeat for reset button.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 02-17-2005, 05:34 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Yeah I think I'm just gonna use an image for the button... at least then I can control what size it is. I'll probably end up writing a different stylesheet for the form elements for each browser...
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Reply     « Reply to CSS Form Input Cross Browser Fun
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43676 seconds with 12 queries