locked
P tag top and bottom margin added in IE8 but not in IE7 RRS feed

  • Question

  • Hi,

        I am facing text alignment issue in p tag when IE8 is used to render content, this worked fine in IE7. Attached sample html, it is similar html structure in my application. Looks like IE8 adds top and margin in all P tags but IE7 does not if P tag does not have content tag as its sibling node. Is there any easy solution to fix this issue?

    <!DOCTYPE html>
    <html>
    <head>
    <style> 
    </style>
    </head>
    <body>
    <table>
    <tr><td><p>This is first table paragraph</p></td></tr>
    </table>
    <table>
    <tr><td><p>This is second table paragraph</p></td></tr>
    </table>
    </body>
    </html>

    Tuesday, April 23, 2013 1:47 AM

All replies

  • Hi,

    web search for reset.css

    for questions about html, css and scripting for web site developers please post to the IE Web Development forum with a link to your website.

    Questions regarding Internet Explorer 8, 9 and 10 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us


    Rob^_^

    Tuesday, April 23, 2013 2:55 AM
  • Thanks for the reply. I posted the question in IE Web Developmen forum.

    Tuesday, April 23, 2013 4:19 PM