Results 1 to 5 of 5

Thread: IE9 is wrapping text and ignoring font styles

  1. #1
    Join Date
    Dec 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question IE9 is wrapping text and ignoring font styles

    I've spent the last couple of days rendering a PSD to WordPress and thought that i was done but my client, who uses IE9 (gasp) has noticed differences in the layout that I'm not seeing in Chrome, Firefox 13, Opera 21, IE8, or Safari.

    The link is here
    http://www.simplestepstowellness.com

    The problem is with the optin form on the right middle of the page. I started with an Aweber form and laid in styles to force the positioning. Nothing too elegant ... just padding and margins.

    What I can't figure out is why IE9 is forcing a larger font size that is subsequently causing the text beside the check boxes to wrap. I also can't figure out why the on focus text in the form is times roman when the default styles for the site are san serif.

    I'm unable to install IE9 on my computer as it is not a 64-bit machine so this is a bit of a quandary. I've never run into this problem with any other site.

    I did find this link that seems to suggest a solution:
    http://requiem4adream.wordpress.com/2011/11/13/ie9-only-css-hack/

    Has anyone got a solution for this?
    Last edited by jscheuer1; 08-17-2012 at 02:12 PM. Reason: Format

  2. #2
    Join Date
    Aug 2012
    Location
    New Delhi
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You have given the font-size:13 px in the below class
    #af-form-456490189 . af-body label.choice-education-link

    remove the font-size:13px; or make it 12px

    It is overwrite in the other browsers but ie is taking. That's why the font is coming in two lines.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    That's right, and it's also two others (from the on page styles, scroll the code block to see them):

    Code:
    #af-form-456490189 .af-body label.choice-coaching-link{color:#333333;text-decoration:none;margin-top: -3px; padding: 0 0 3px 1px; font-family: 'Cabin Condensed', sans-serif; font-size: 13px; font-weight: 500;}
    #af-form-456490189 .af-body label.choice-education-link{color:#333333;text-decoration:none;margin-top: -2px; padding: 0 0 3px 0px; font-family: 'Cabin Condensed', sans-serif; font-size: 13px; font-weight: 500;}
    #af-form-456490189 .af-body label.choice-terms-link{color:#333333;text-decoration:none;margin-top: -2px; padding: 0 0 3px 0px; font-family: 'Cabin Condensed', sans-serif; font-size: 13px; font-weight: 500;}
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Dec 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John! That did the trick.

    I wonder why that declaration was ignored it 5 other browsers? (rofl)

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Hard to say, and harder still now that it's fixed. I would speculate though that in the browser's that rendered it the way you wanted the:

    element.classname

    selector isn't as dominant as the

    id classname

    selector.

    In any case this or some other subtlety of CSS cascading/precedence/dominance is most likely responsible. And if it is, I'm not certain which browser is doing it right, though likely the majority probably are.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •