<p> width problem in IE7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • commyleung
    New Member
    • Feb 2010
    • 3

    <p> width problem in IE7

    <div>
    AAAAAAAAAAAAA
    <p></p>
    </div>

    div {float:left;bor der:1px solid #000;}
    p {height:10px;fo nt-size:10px;backg round:#fcf;}

    IE8 OK

    IE7 NG
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Code:
    <p>&nbsp;</p>
    ?

    Comment

    • commyleung
      New Member
      • Feb 2010
      • 3

      #3
      NO! I want let <p> width 100%
      and <p></p> must be empty!

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        it happens that elements without content are not rendered, therefore the invisible content.

        Comment

        • commyleung
          New Member
          • Feb 2010
          • 3

          #5
          can you tell me ,Why IE8 is ok?

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            IE8 does not work like IE7 compatibility mode which doesn't work like IE7 which doesn't work like IE6.

            IE is the worst browser on the planet.

            Comment

            Working...