SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Mar 2006
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Font size different. Style not being applied in IE, works fine in firefox..

    Hi,
    I have a very strange problem at hand. I have a page login.htm which shows fine in Firefox but not in IE. Look at the snapshots. I have a table showing login screen asking for username and password. The page looks fine in Firefox but not in IE. So heres what I did. I moved the page login.htm from root/PD folder to root folder and it works fine in both Ie & Firefox. I am not sure what I am doing wrong. I am importing stylesheet from root/styles/styles.css, but to make things easier, I imported the stylesheet directly in the page but still it doesnt work.

    Anyone has any suggestions?? I know I am making a stupid mistake somewhere but I am not able to figure it out....

    I tried using Firebug & Webdeveloper extensions for Firefox and here is the style being applied to that page or to that login section irrelevant of where I put the page i.e either in root or root/PD

    Code:
    body {
    color:#333333;
    font-family:Verdana,Arial,Helvetica,sans-serif;
    font-size:12px;
    line-height:115%;
    }
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Are you working with a full doctype in standards mode?

    If not then you will be in quirks mode and IE won't inherit the font size into the table and you will have to set it explicitly.

  3. #3
    SitePoint Addict
    Join Date
    Mar 2006
    Posts
    200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    for the first point you mentioned, I dont know what you meant and how to check it... is it the w3 standards where in you say strict/transitional???

    second point, dont know much right now about quirks mode, but tried adding style into the table explicityly and it looks fine... Thanks for that...

    Can someone point me to docs abt point one and quirks mode???

    Thanks a lot....

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,367
    Mentioned
    180 Post(s)
    Tagged
    6 Thread(s)
    HI,

    Have a look at this article which explains which doctypes cause quirks mode and which cause standards mode and why it makes a difference

    http://www.ericmeyeroncss.com/bonus/render-mode.html


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
  •