Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 06, 2008, 05:53:41 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: CSS - Fonts - Firefox and IE  (Read 1476 times)
CyJobes
Pong! (the videogame) Master
*****
Offline Offline

Posts: 25


« on: January 11, 2008, 02:35:47 PM »

I have a form I am making and the difference in sizes between IE and Firefox is driving me mad.

Basically there is a radio button to the left with a text description on the right. Under these are text fields. All these are fine. The bottom line however has three fields (city, state, zip) going from left to right, not stacked.

The right end of the last field needs to be in line with the fields above it, but no matter what the size of the input tag or font, the side will not match in the browsers.

If I get Firefox to line up, then IE is too big. If I get IE to line up, then Firefox is way too short.
Firefox:
IE:


What can I do to make these match?

Thanks in advance for your help.
Cy
Logged
CyJobes
Pong! (the videogame) Master
*****
Offline Offline

Posts: 25


« Reply #1 on: January 14, 2008, 05:55:01 AM »

BUMP
Logged
wektech
Jabba the Hutt
*****
Offline Offline

Posts: 690


WWW
« Reply #2 on: January 14, 2008, 07:01:26 AM »

Can you post the code or a url?
Logged

CyJobes
Pong! (the videogame) Master
*****
Offline Offline

Posts: 25


« Reply #3 on: January 14, 2008, 09:33:21 AM »

No URL at this time.

I decided to go with tables.  Confused

If you have any info please share.  Applause

Thanks.
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3381



« Reply #4 on: January 14, 2008, 02:57:10 PM »

Not terribly elegant, but the following might be a start:
Code:
...Snail Mail checkbox...<br/>
<table border="0">
<tr><td>...address entry field...</td></tr>
<tr>
 <td align="left">...city entry field...</td>
 <td align="center">...state entry field ...</td>
 <td align="right">...ZIP entry field...</td>
</tr>
</table>

I haven't actually tried it. You may have to play with styles to get border/rule consistency between IE and FF.
Logged

victor363
Trekkie
**
Offline Offline

Posts: 19



WWW
« Reply #5 on: January 30, 2008, 08:43:59 AM »

So how did that code work - were you able to resolve your problem with it? I'm having the same problem right now, with radio boxes, so I would love to hear what you did.
Logged
CyJobes
Pong! (the videogame) Master
*****
Offline Offline

Posts: 25


« Reply #6 on: January 30, 2008, 08:51:40 AM »

I CSS to work for me when it came to defining the widths of the fields. Because I used tables all the radio buttons aligned correctly, though I am certain if I had more time I could have achieved it all in CSS.

The best CSS property that I have found that keeps the table looking clean is "vertical-align". I place this on the fields and they clean up the layout.

Defining the width of each field allowed all the fields to end at the appropriate position.

Thanks for all the suggestions.

Cy
Logged
ReTodd
Lunarpages Senior Designer
Developer
Jabba the Hutt
*****
Offline Offline

Posts: 553



WWW
« Reply #7 on: January 30, 2008, 08:56:59 AM »

Here's some solutions to css forms:

http://www.smashingmagazine.com/2006/11/11/css-based-forms-modern-solutions/
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM