Reply
Controlling textfield size cross browser
Old 01-26-2006, 10:21 AM Controlling textfield size cross browser
Junior Talker

Posts: 1
I have a small form embedded in a page, and a design requirement calls for me to square all the text fields up going down the page. I can do this for one browser, but not cross browser.

I can write the browser sniff no problem, but does anyone know the 'magic formula' for conversion between any browsers for text fields?

target browsers are:
IE5+, IEMac, NN, Opera, Safari, FireFox, and FireFox for Mac

any of these conversion formulae are appreciated

Thanks for a minute if you can,
_smk
smk888 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 01-26-2006, 02:03 PM
funkdaddu's Avatar
Web Design Snob

Posts: 636
Can we see the page? If for 5 fields you write <input type="text" size="10"> they should all be he same width in the browser, just not the same when comparing 2 different browsers. You can also try defining an input element in CSS and have them all be the same font size in px:


input {
font-size: 10px
}

This will make the input boxes closer in size between browsers.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 01-27-2006, 01:40 PM
vangogh's Avatar
Post Impressionist

Posts: 8,816
Name: Steven Bradley
Location: Boulder, Colorado
You can also specify exact widths for your inputs with css.

input {width:50px}

You can control many properties of form inputs with css, font-size, width, height are pretty useful.

I'm not sure this always works with things like selects in all browsers so sometimes I've set my inputs to match the default select boxes.
__________________
l Search Engine Friendly Web Design | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Controlling textfield size cross browser
 

Thread Tools

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

vB 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.11733 seconds with 12 queries