SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist S7even's Avatar
    Join Date
    Jun 2002
    Posts
    481
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    first-letter/line bug?

    I noticed the following when working with first-line and first-letter pseudo elements and IE6:

    while this works:
    Code:
    p:first-line {
    color:red;
    }
    This doesn't:
    Code:
    p:first-line{
    color:red;
    }
    The only difference is that in the first case there is a space between ":first line" and "{" while there is no space in the second.

    This happens only when IE6 is in standards mode. If I add the <?xml declaration, or remove the doctype then everything works.

    Does this happen to your IE6 also? Is it a bug, or we are supposed to leave that space always?

  2. #2
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think generally people always use the space, or a newline. Not sure if it's in the specs though.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


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
  •